GoogleDrive ERROR: An extractor error has occurred. (caused by KeyError('50')) #27057

Open
opened 2026-02-21 14:37:20 -05:00 by deekerman · 5 comments
Owner

Originally created by @Himura2la on GitHub (Feb 10, 2025).

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2021.12.17 (711e72c292)
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

youtube-dl -v 'https://drive.google.com/file/d/1VOuBNVHKi8iFZ91RQHhwPqOkctouH5uA/view?usp=drivesdk'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://drive.google.com/file/d/1VOuBNVHKi8iFZ91RQHhwPqOkctouH5uA/view?usp=drivesdk']
[debug] Encodings: locale cp1251, fs utf-8, out utf-8, pref cp1251
[debug] youtube-dl version 2021.12.17
[debug] Python 3.10.11 (CPython AMD64 64bit) - Windows-10-10.0.22631-SP0 - OpenSSL 1.1.1t  7 Feb 2023
[debug] exe versions: ffmpeg 5.0.1-full_build-www.gyan.dev, ffprobe 5.0.1-full_build-www.gyan.dev
[debug] Proxy map: {}
[GoogleDrive] 1VOuBNVHKi8iFZ91RQHhwPqOkctouH5uA: Downloading webpage
ERROR: An extractor error has occurred. (caused by KeyError('50')); please report this issue on https://github.com/ytdl-org/youtube-dl/issues , using the appropriate issue template. Make sure you are using the latest version; see  https://github.com/ytdl-org/youtube-dl/#user-content-installation  on how to update. Be sure to call youtube-dl with the --verbose option and include the complete output.
Traceback (most recent call last):
  File "C:\Users\glago\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\youtube_dl\extractor\common.py", line 571, in extract
    ie_result = self._real_extract(url)
  File "C:\Users\glago\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\youtube_dl\extractor\googledrive.py", line 198, in _real_extract
    'ext': self._FORMATS_EXT[format_id],
KeyError: '50'
Traceback (most recent call last):
  File "C:\Users\glago\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\youtube_dl\extractor\common.py", line 571, in extract
    ie_result = self._real_extract(url)
  File "C:\Users\glago\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\youtube_dl\extractor\googledrive.py", line 198, in _real_extract
    'ext': self._FORMATS_EXT[format_id],
KeyError: '50'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\glago\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\youtube_dl\YoutubeDL.py", line 875, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Users\glago\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\youtube_dl\YoutubeDL.py", line 971, in __extract_info
    ie_result = ie.extract(url)
  File "C:\Users\glago\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\youtube_dl\extractor\common.py", line 584, in extract
    raise ExtractorError('An extractor error has occurred.', cause=e)
youtube_dl.utils.ExtractorError: An extractor error has occurred. (caused by KeyError('50')); please report this issue on https://github.com/ytdl-org/youtube-dl/issues , using the appropriate issue template. Make sure you are using the latest version; see  https://github.com/ytdl-org/youtube-dl/#user-content-installation  on how to update. Be sure to call youtube-dl with the --verbose option and include the complete output.

Description

I guess something changed in Google Drive...

Originally created by @Himura2la on GitHub (Feb 10, 2025). ## Checklist - [x] I'm reporting a broken site support - [x] I've verified that I'm running youtube-dl version **2021.12.17** (711e72c292327674c4a0593fdbb83d6347738ec9) - [x] I've checked that all provided URLs are alive and playable in a browser - [x] I've checked that all URLs and arguments with special characters are properly quoted or escaped - [x] I've searched the bugtracker for similar issues including closed ones ## Verbose log ``` youtube-dl -v 'https://drive.google.com/file/d/1VOuBNVHKi8iFZ91RQHhwPqOkctouH5uA/view?usp=drivesdk' [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['-v', 'https://drive.google.com/file/d/1VOuBNVHKi8iFZ91RQHhwPqOkctouH5uA/view?usp=drivesdk'] [debug] Encodings: locale cp1251, fs utf-8, out utf-8, pref cp1251 [debug] youtube-dl version 2021.12.17 [debug] Python 3.10.11 (CPython AMD64 64bit) - Windows-10-10.0.22631-SP0 - OpenSSL 1.1.1t 7 Feb 2023 [debug] exe versions: ffmpeg 5.0.1-full_build-www.gyan.dev, ffprobe 5.0.1-full_build-www.gyan.dev [debug] Proxy map: {} [GoogleDrive] 1VOuBNVHKi8iFZ91RQHhwPqOkctouH5uA: Downloading webpage ERROR: An extractor error has occurred. (caused by KeyError('50')); please report this issue on https://github.com/ytdl-org/youtube-dl/issues , using the appropriate issue template. Make sure you are using the latest version; see https://github.com/ytdl-org/youtube-dl/#user-content-installation on how to update. Be sure to call youtube-dl with the --verbose option and include the complete output. Traceback (most recent call last): File "C:\Users\glago\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\youtube_dl\extractor\common.py", line 571, in extract ie_result = self._real_extract(url) File "C:\Users\glago\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\youtube_dl\extractor\googledrive.py", line 198, in _real_extract 'ext': self._FORMATS_EXT[format_id], KeyError: '50' Traceback (most recent call last): File "C:\Users\glago\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\youtube_dl\extractor\common.py", line 571, in extract ie_result = self._real_extract(url) File "C:\Users\glago\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\youtube_dl\extractor\googledrive.py", line 198, in _real_extract 'ext': self._FORMATS_EXT[format_id], KeyError: '50' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\glago\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\youtube_dl\YoutubeDL.py", line 875, in wrapper return func(self, *args, **kwargs) File "C:\Users\glago\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\youtube_dl\YoutubeDL.py", line 971, in __extract_info ie_result = ie.extract(url) File "C:\Users\glago\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\youtube_dl\extractor\common.py", line 584, in extract raise ExtractorError('An extractor error has occurred.', cause=e) youtube_dl.utils.ExtractorError: An extractor error has occurred. (caused by KeyError('50')); please report this issue on https://github.com/ytdl-org/youtube-dl/issues , using the appropriate issue template. Make sure you are using the latest version; see https://github.com/ytdl-org/youtube-dl/#user-content-installation on how to update. Be sure to call youtube-dl with the --verbose option and include the complete output. ``` ## Description I guess something changed in Google Drive...
Author
Owner

@dirkf commented on GitHub (Feb 10, 2025):

In this case there seems to be a trivial patch:

--- old/youtube-dl/youtube_dl/extractor/googledrive.py
+++ new/youtube-dl/youtube_dl/extractor/googledrive.py
@@ -70,6 +70,7 @@
         '45': 'webm',
         '46': 'webm',
         '59': 'mp4',
+        '50': 'm4a',
     }
     _BASE_URL_CAPTIONS = 'https://drive.google.com/timedtext'
     _CAPTIONS_ENTRY_TAG = {
@dirkf commented on GitHub (Feb 10, 2025): In this case there seems to be a trivial patch: ```diff --- old/youtube-dl/youtube_dl/extractor/googledrive.py +++ new/youtube-dl/youtube_dl/extractor/googledrive.py @@ -70,6 +70,7 @@ '45': 'webm', '46': 'webm', '59': 'mp4', + '50': 'm4a', } _BASE_URL_CAPTIONS = 'https://drive.google.com/timedtext' _CAPTIONS_ENTRY_TAG = { ```
Author
Owner

@Himura2la commented on GitHub (Feb 11, 2025):

isn't it mp3?

@Himura2la commented on GitHub (Feb 11, 2025): isn't it mp3?
Author
Owner

@dirkf commented on GitHub (Feb 11, 2025):

It may have been originally, but G helpfully transcoded it as well:

$ python3 -m youtube_dl -vF 'https://drive.google.com/file/d/1VOuBNVHKi8iFZ91RQHhwPqOkctouH5uA/view?usp=drivesdk'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-vF', 'https://drive.google.com/file/d/1VOuBNVHKi8iFZ91RQHhwPqOkctouH5uA/view?usp=drivesdk']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Git HEAD: 68f9fad31
[debug] Python 3.11.2 (CPython i686 32bit) - Linux-6.1.0-30-686-pae-i686-with-glibc2.36 - OpenSSL 3.0.15 3 Sep 2024 - glibc 2.36
[debug] exe versions: ffmpeg 5.1.6-0, ffprobe 5.1.6-0
[debug] Proxy map: {}
[GoogleDrive] 1VOuBNVHKi8iFZ91RQHhwPqOkctouH5uA: Downloading webpage
[GoogleDrive] 1VOuBNVHKi8iFZ91RQHhwPqOkctouH5uA: Requesting source file
[info] Available formats for 1VOuBNVHKi8iFZ91RQHhwPqOkctouH5uA:
format code  extension  resolution note
50           m4a        0x0        
source       mp3        unknown    (best)
$ 
@dirkf commented on GitHub (Feb 11, 2025): It may have been originally, but G helpfully transcoded it as well: ```console $ python3 -m youtube_dl -vF 'https://drive.google.com/file/d/1VOuBNVHKi8iFZ91RQHhwPqOkctouH5uA/view?usp=drivesdk' [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['-vF', 'https://drive.google.com/file/d/1VOuBNVHKi8iFZ91RQHhwPqOkctouH5uA/view?usp=drivesdk'] [debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8 [debug] youtube-dl version 2021.12.17 [debug] Git HEAD: 68f9fad31 [debug] Python 3.11.2 (CPython i686 32bit) - Linux-6.1.0-30-686-pae-i686-with-glibc2.36 - OpenSSL 3.0.15 3 Sep 2024 - glibc 2.36 [debug] exe versions: ffmpeg 5.1.6-0, ffprobe 5.1.6-0 [debug] Proxy map: {} [GoogleDrive] 1VOuBNVHKi8iFZ91RQHhwPqOkctouH5uA: Downloading webpage [GoogleDrive] 1VOuBNVHKi8iFZ91RQHhwPqOkctouH5uA: Requesting source file [info] Available formats for 1VOuBNVHKi8iFZ91RQHhwPqOkctouH5uA: format code extension resolution note 50 m4a 0x0 source mp3 unknown (best) $ ```
Author
Owner

@Himura2la commented on GitHub (Feb 11, 2025):

I hope the original version should be prioritized

@Himura2la commented on GitHub (Feb 11, 2025): I hope the original version should be prioritized
Author
Owner

@dirkf commented on GitHub (Feb 11, 2025):

(best), so yes.

@dirkf commented on GitHub (Feb 11, 2025): `(best)`, so yes.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#27057
No description provided.