[nrk] Standardize string formatting in f-string

This commit is contained in:
MrDemocracy 2024-10-06 02:00:15 +02:00 committed by GitHub
parent 7e8e6cb621
commit 6b2b7dbc42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -902,7 +902,7 @@ class NRKPlaylistBaseIE(InfoExtractor):
def _real_extract(self, url):
playlist_id = self._match_id(url)
webpage = self._download_webpage(f'https://www.nrk.no/serum/api/render/{playlist_id.split('-')[-1]}', playlist_id)
webpage = self._download_webpage(f'https://www.nrk.no/serum/api/render/{playlist_id.split("-")[-1]}', playlist_id)
entries = [
self.url_result(f'nrk:{video_id}', NRKIE.ie_key())
for video_id in re.findall(self._ITEM_RE, webpage)