Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for tnaflix videos in fantasti.cc #72

Open
GoogleCodeExporter opened this issue Apr 14, 2015 · 0 comments
Open

fix for tnaflix videos in fantasti.cc #72

GoogleCodeExporter opened this issue Apr 14, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

tnaflix videos in fantasti.cc fail with the error:

ERROR: Error Type: <type 'exceptions.UnboundLocalError'>
ERROR: Error Contents: local variable 'urlget2' referenced before assignment

The following code block (most probably an actual or derived earlier version of 
the current block), if used instead of the current 'tnaflix' block, solves the 
error:

-------
    elif 'tnaflix' in url:
        match = re.compile('<param name="FlashVars" value="(.+?)"/>'
                          ).findall(html)
        for gurl in match:
            purl = string.split(gurl, '?')[1]
            urlget2 = 'http://www.tnaflix.com/embedding_player/' \
                      'embedding_feed.php?' + purl
        html = get_html(urlget2)
        match = re.compile('<file>(.+?)</file>').findall(html)
        for each in match:
            fetchurl = each
            print 'fetchurl: %s' % fetchurl
        return fetchurl    
--------

Original issue reported on code.google.com by leonmar...@gmail.com on 13 Aug 2013 at 1:50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant