Frederic De Groef avatar Frederic De Groef committed e6e9392

[sudinfo] minor rename

Comments (0)

Files changed (1)


     if media_links:
         for i, item in enumerate(media_links):
             item_id ="./@href").extract()
-            url = u"{0}{1}".format(source_url, item_id)
+            url = item_id
             title = u"EMBEDDED MEDIA {0}".format(i)
             tags = set(['media', 'embedded'])
             all_tagged_urls.append(make_tagged_url(url, title, tags))
     if hasattr(source, 'read'):
         html_content =
-        source_url = convert_utf8_url_to_ascii(source)
+        source = convert_utf8_url_to_ascii(source)
-            html_content = fetch_html_content(source_url)
+            html_content = fetch_html_content(source)
         except urllib2.HTTPError as err:
             if err.code == 404:
                 return None, "<html><head><title>404</title></head><body></body></html>"
         content, content_links = extract_content_and_links(hxs)
-        associated_links = extract_associated_links(hxs, source_url)
+        associated_links = extract_associated_links(hxs)
         all_links = intro_links + content_links + associated_links
-        return (ArticleData(source_url, title, pub_date, pub_time, fetched_datetime,
+        return (ArticleData(source, title, pub_date, pub_time, fetched_datetime,
                             category, author,
                             intro, content),
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.