glomatico / gamdl

A Python CLI app for downloading Apple Music songs/music videos/posts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

cx410 opened this issue · comments

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'

what is ur python version?

python --version
Python 3.9.1

should be fixed on the new version