jo1gi / audiobook-dl

Audiobook CLI downloader
GNU General Public License v3.0
248 stars 43 forks source link

Podimo not working #100

Open nahafyr opened 8 months ago

nahafyr commented 8 months ago

Installation method: pip install audiobook-dl

Version: See command output

Describe the bug Error while downloading podimo podcast

Command output

DEBUG audiobook-dl 0.7.3
DEBUG python 3.11.7 (main, Dec  4 2023, 18:10:11) [Clang 15.0.0 (clang-1500.1.0.2.5)]
 INFO Finding compatible source
 INFO Authenticating with podimo
DEBUG Logging in
DEBUG 
authorization_token='******'
"DEBUG Downloading result of https://open.podimo.com/podcast/c6ec0b3e-c71b-470c-ac39-f5fda8fee203
Traceback (most recent call last):
  File "/opt/homebrew/bin/audiobook-dl", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/audiobookdl/__main__.py", line 33, in main
    process_url(url, options, config)
  File "/opt/homebrew/lib/python3.11/site-packages/audiobookdl/__main__.py", line 57, in process_url
    result = source.download(url)
             ^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/audiobookdl/sources/podimo.py", line 67, in download
    return self.download_podcast(url)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/audiobookdl/sources/podimo.py", line 76, in download_podcast
    episodes = self.download_podcast_episode_ids(podcast_id)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/audiobookdl/sources/podimo.py", line 106, in download_podcast_episode_ids
    for episode in response.json()["data"]["podcastEpisodes"]:
                   ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable