glomatico / gamdl

A Python CLI app for downloading Apple Music songs/music videos/posts.
MIT License
858 stars 94 forks source link

TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' #92

Closed cx410 closed 7 months ago

cx410 commented 7 months ago

What is the solution?

C:\Users\Administrator>gamdl "https://music.apple.com/us/album/never-gonna-give-you-up-2022-remaster/1626265761?i=1626265765" Traceback (most recent call last): File "c:\users\administrator\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\administrator\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\Scripts\gamdl.exe__main__.py", line 4, in File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\gamdl\cli.py", line 17, in from .downloader_song import DownloaderSong File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\gamdl\downloader_song.py", line 20, in class DownloaderSong: File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\gamdl\downloader_song.py", line 57, in DownloaderSong def get_playlist_from_codec(self, m3u8_data: dict) -> dict | None: TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

glomatico commented 7 months ago

what is ur python version?

cx410 commented 7 months ago

python --version Python 3.9.1

glomatico commented 7 months ago

should be fixed on the new version