~ubuntu-branches/ubuntu/raring/radiotray/raring

« back to all changes in this revision

Viewing changes to src/PlsPlaylistDecoder.py

  • Committer: Bazaar Package Importer
  • Author(s): Elías Alejandro Año Mendoza
  • Date: 2011-03-18 09:16:48 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110318091648-doskr4rlcdgmuo0v
Tags: 0.6.3-1
* New upstream release
* Added missing dependency (Closes: #612725)
  + Thanks to Stefan Pavlov <spavlov@uni-svishtov.bg>
* Fixed typo in description (Closes: #616155)
  + Thanks to Roth Robert <robert.roth.off@gmail.com>
* Switched debian/copyright to DEP-5

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#
19
19
##########################################################################
20
20
import urllib2
 
21
from lib.common import USER_AGENT
21
22
 
22
23
class PlsPlaylistDecoder:
23
24
 
40
41
            print "Downloading playlist..."
41
42
            
42
43
            req = urllib2.Request(url)
 
44
            req.add_header('User-Agent', USER_AGENT)
43
45
            f = urllib2.urlopen(req)
44
46
            str = f.read()
45
47
            f.close()