Merge branch 'master' of github.com:brtmr/podfox

This commit is contained in:
Bastian Reitemeier 2015-11-15 21:21:18 +01:00
commit 71f803863d
2 changed files with 7 additions and 3 deletions

View file

@ -7,7 +7,7 @@ A program for managing & catching podcasts from the terminal.
Work in Progress and unfinished. Use at your own risk.
## Requirements
requires feedparser, pycurl and colorama
Ubuntu: ```sudo apt-get install python3-colorama python3-feedparser python3-pycurl```
Ubuntu: ```sudo apt-get install python3-colorama python3-feedparser python3-pycurl python3-docopt```
## Configuration

View file

@ -40,6 +40,11 @@ from time import mktime
CONFIGURATION = {}
mimetypes = [
'audio/ogg',
'audio/mpeg',
'video/mp4'
]
def print_err(err):
print(Fore.RED + Style.BRIGHT + err +
@ -166,8 +171,7 @@ def episodes_from_feed(d):
for link in entry.links:
if not hasattr(link, 'type'):
continue
if hasattr(link, 'type') and (link.type == 'audio/mpeg' or
link.type == 'audio/ogg'):
if hasattr(link, 'type') and (link.type in mimetypes):
if hasattr(entry, 'title'):
episode_title = entry.title
else: