Merge branch 'master' of github.com:Yetangitu/Spodcast
Add missing "const" before constants in feed index template Add (back) extra log.debug in podcast.py to make it easier to debug feed problems when they arise
This commit is contained in:
commit
3e05c3611b
2 changed files with 3 additions and 2 deletions
|
@ -4,8 +4,8 @@ RSS_FEED_SHOW_INDEX = 'index'
|
|||
|
||||
def RSS_FEED_CODE():
|
||||
return r'''<?php
|
||||
SHOW_INDEX = "''' + RSS_FEED_SHOW_INDEX + r'''";
|
||||
INFO = "''' + RSS_FEED_INFO_EXTENSION + r'''";
|
||||
const SHOW_INDEX = "''' + RSS_FEED_SHOW_INDEX + r'''";
|
||||
const INFO = "''' + RSS_FEED_INFO_EXTENSION + r'''";
|
||||
header("Content-type: text/xml");
|
||||
$feed_name = "Spodcast autofeed";
|
||||
$feed_description = "Spodcast autofeed";
|
||||
|
|
|
@ -129,6 +129,7 @@ def download_episode(episode_id) -> None:
|
|||
log.warning('Skipping episode (episode NOT FOUND)')
|
||||
else:
|
||||
filename = clean_filename(podcast_name + ' - ' + episode_name)
|
||||
log.debug(Spodcast.invoke_url(EPISODE_DOWNLOAD_URL(episode_id)))
|
||||
download_url = Spodcast.invoke_url(EPISODE_DOWNLOAD_URL(episode_id))[1]["data"]["episode"]["audio"]["items"][-1]["url"]
|
||||
log.debug(f"download_url: {download_url}")
|
||||
show_directory = os.path.realpath(os.path.join(Spodcast.CONFIG.get_root_path(), clean_filename(podcast_name) + '/'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue