added feedparser for testing RSS

main
Rob Canning 2024-01-18 15:07:44 +01:00
parent 2715358487
commit 3c5501643b
2 changed files with 12 additions and 0 deletions

11
feed_parser.py 100755
View File

@ -0,0 +1,11 @@
#!/usr/bin/python3
import feedparser
#d = feedparser.parse('http://www.reddit.com/r/python/.rss')
d = feedparser.parse('file:///home/rob/antena/html/podcast_rss.xml')
for post in d.entries:
# print(post.title + ": " + post.link + "")
print(post)

View File

@ -100,6 +100,7 @@ def create_episode_playlist(episode_playlist: list, complete_playlist:list):
min_track_dur = 2 min_track_dur = 2
# TODO what is most important 12 tracks or 60 minutes # TODO what is most important 12 tracks or 60 minutes
# what will
while episode_duration < 60 * 60 and track_count < 12 : while episode_duration < 60 * 60 and track_count < 12 :
cursor = conn.cursor() cursor = conn.cursor()