diff options
author | cedricbonhomme <devnull@localhost> | 2010-06-16 09:39:17 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-06-16 09:39:17 +0200 |
commit | 2536047b55f56c5927b037e4bc1e647a2c14f75b (patch) | |
tree | c19f61a923863cfdd2db5785dbdcd2a9a05a9e34 /utils.py | |
parent | Faster and safer code. (diff) | |
download | newspipe-2536047b55f56c5927b037e4bc1e647a2c14f75b.tar.gz newspipe-2536047b55f56c5927b037e4bc1e647a2c14f75b.tar.bz2 newspipe-2536047b55f56c5927b037e4bc1e647a2c14f75b.zip |
Bug fix line 234 of utils.py. append() replaced by extend() when searching for RSS/ATOM feeds.
Diffstat (limited to 'utils.py')
-rwxr-xr-x | utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -231,7 +231,7 @@ def search_feed(url): page = urllib2.urlopen(url) soup = BeautifulSoup(page) feed_links = soup('link', type='application/atom+xml') - feed_links.append(soup('link', type='application/rss+xml')) + feed_links.extend(soup('link', type='application/rss+xml')) for feed_link in feed_links: if url not in feed_link['href']: return urlparse.urljoin(url, feed_link['href']) |