|
@@ -222,16 +222,19 @@ class sub(object):
|
|
"""Constructs the API URL which is used to retrieve API data"""
|
|
"""Constructs the API URL which is used to retrieve API data"""
|
|
if self.__type == "channel":
|
|
if self.__type == "channel":
|
|
self.__APIURL = "https://gdata.youtube.com/feeds/api/users/"\
|
|
self.__APIURL = "https://gdata.youtube.com/feeds/api/users/"\
|
|
- + urllib2.quote(self.__name) + "/uploads/" + "?v=2"
|
|
|
|
|
|
+ + urllib2.quote(self.__name) + "/uploads/" + "?v=2"\
|
|
|
|
+ + "&max-results=%s" % self.__conf.values["maxvideos"]
|
|
if self.__search != "":
|
|
if self.__search != "":
|
|
self.__APIURL = self.__APIURL + "&q=" + "%22"\
|
|
self.__APIURL = self.__APIURL + "&q=" + "%22"\
|
|
+ urllib2.quote(self.__search) + "%22"
|
|
+ urllib2.quote(self.__search) + "%22"
|
|
elif self.__type == "search":
|
|
elif self.__type == "search":
|
|
self.__APIURL = "http://gdata.youtube.com/feeds/api/videos?q="\
|
|
self.__APIURL = "http://gdata.youtube.com/feeds/api/videos?q="\
|
|
- + urllib2.quote(self.__search) + "&max-results=10" + "&v=2"
|
|
|
|
|
|
+ + urllib2.quote(self.__search) + "&v=2"\
|
|
|
|
+ + "&max-results=%s" % self.__conf.values["maxvideos"]
|
|
elif self.__type == "playlist":
|
|
elif self.__type == "playlist":
|
|
self.__APIURL = "https://gdata.youtube.com/feeds/api/playlists/"\
|
|
self.__APIURL = "https://gdata.youtube.com/feeds/api/playlists/"\
|
|
- + "%20" + urllib2.quote(self.__name) + "%20" + "?v=2"
|
|
|
|
|
|
+ + "%20" + urllib2.quote(self.__name) + "%20" + "?v=2"\
|
|
|
|
+ + "&max-results=%s" % self.__conf.values["maxvideos"]
|
|
else:
|
|
else:
|
|
printf(_("None or invalid subscription type given, "
|
|
printf(_("None or invalid subscription type given, "
|
|
"please check the type option and try again"),
|
|
"please check the type option and try again"),
|