manolomartinez / greg

A command-line podcast aggregator
GNU General Public License v3.0
296 stars 37 forks source link

Change from deprecated urlretrieve to urlopen, Add redirection check #88

Closed pepie34 closed 6 years ago

pepie34 commented 6 years ago

The method urllib.request.urlretrieve is deprecated in python 3, move to the new urllib.request.urlopen (as greg requires Python 3.3+ now). This also enables url redirection check and update of the filename accordingly (needed for some podcast providers such as Radio France).

Next step will be adding a progress bar while downloading content.