1
0
Fork 0
mirror of https://github.com/mwalbeck/podfox.git synced 2025-04-15 02:18:29 +00:00

las feed works.

This commit is contained in:
Bastian Reitemeier 2015-10-25 23:16:50 +01:00
parent e40afd0850
commit 9d1ceb612d
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.swp

View file

@ -140,7 +140,9 @@ def episodes_from_feed(d):
date = mktime(parsedate(entry.published))
if hasattr(entry, 'links'):
for link in entry.links:
if link.type == 'audio/mpeg' or link.type == 'audio/ogg':
if not hasattr(link,'type'):
continue
if hasattr(link,'type') and link.type == 'audio/mpeg' or link.type == 'audio/ogg':
if hasattr(entry, 'title'):
episode_title = entry.title
else: