Update youtube_dl/extractor/googlephotos.py

Co-authored-by: dirkf <fieldhouse@gmx.net>
This commit is contained in:
upintheairsheep 2023-02-22 09:28:03 -08:00 committed by GitHub
parent 0842d4d7d7
commit b44a9afcfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,8 +52,7 @@ class GooglePhotosIE(InfoExtractor):
for df in self._extract_mpd_formats(
mpd_url, video_id, fatal=dash_mpd_fatal,
formats_dict=self._formats):
if df['format_id'] not in dash_formats:
dash_formats[df['format_id']] = df
dash_formats.setdefault(df['format_id'], df)
if dash_formats:
formats = [f for f in formats if f['format_id'] not in dash_formats.keys()]