https://bugs.gpodder.org/show_bug.cgi?id=1665

--- Comment #25 from Andreas Piesk <[email protected]> 2012-09-17 08:06:14 BST ---
(Mit Bezug zu comment 24)
> (In reply to comment #23)
> > Hi, sorry for bothering, but should the solution posted here (youtube.py) 
> > work
> > on the n900 gpodder (-fremantle) too? Because it is showing the error 
> > "'module'
> > object has no atribute 'parse_qs'".
> 
> Thanks for testing that - according to
> 
>   http://docs.python.org/library/urlparse.html
> 
> the function parse_qs is "New in version 2.6: Copied from the cgi module." -
> and Maemo 5 is still using Python 2.5.
> 
> So the fix for you would be to take the patch, change "import urlparse" to
> "import cgi" and then use "cgi.parse_qs()" instead of "urlparse.parse_qs()".
> 

could you import parse_qs like youtube-dl does?:

# parse_qs was moved from the cgi module to the urlparse module recently.
try:
        from urlparse import parse_qs
except ImportError:
        from cgi import parse_qs

regards,
-ap

-- 
Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs

Reply via email to