View | Details | Raw Unified | Return to bug 15823
Collapse All | Expand All

(-)freevo-1.7.5/src/video/plugins/vpodcast.py~ (-1 / +1 lines)
Lines 140-146 Link Here
140
    def youtube(self, url):
140
    def youtube(self, url):
141
        const_video_url_str = 'http://www.youtube.com/watch?v=%s'
141
        const_video_url_str = 'http://www.youtube.com/watch?v=%s'
142
        const_video_url_re = re.compile(r'^((?:http://)?(?:\w+\.)?youtube\.com/(?:v/|(?:watch(?:\.php)?)?\?(?:.+&)?v=))?([0-9A-Za-z_-]+)(?(1)[&/].*)?$')
142
        const_video_url_re = re.compile(r'^((?:http://)?(?:\w+\.)?youtube\.com/(?:v/|(?:watch(?:\.php)?)?\?(?:.+&)?v=))?([0-9A-Za-z_-]+)(?(1)[&/].*)?$')
143
        const_url_t_param_re = re.compile(r'[,{]t:\'([^\']*)\'')
143
        const_url_t_param_re = re.compile(r'"t": "([^"]*)"')
144
        const_video_url_real_str = 'http://www.youtube.com/get_video?video_id=%s&t=%s'
144
        const_video_url_real_str = 'http://www.youtube.com/get_video?video_id=%s&t=%s'
145
        const_video_title_re = re.compile(r'<title>YouTube - ([^<]*)</title>', re.M | re.I)
145
        const_video_title_re = re.compile(r'<title>YouTube - ([^<]*)</title>', re.M | re.I)
146
        try:
146
        try:

Return to bug 15823