remove feedparser
This commit is contained in:
parent
aae2b07517
commit
2d4bf9212a
4 changed files with 3 additions and 4 deletions
|
@ -2,12 +2,12 @@
|
|||
# vi:si:et:sw=4:sts=4:ts=4
|
||||
import re
|
||||
|
||||
import feedparser
|
||||
from ox.cache import read_url
|
||||
from ox import find_re, strip_tags
|
||||
from ox.iso import langCode2To3, langTo3Code
|
||||
|
||||
def find_subtitles(imdb, parts = 1, language = "eng"):
|
||||
import feedparser
|
||||
if len(language) == 2:
|
||||
language = langCode2To3(language)
|
||||
elif len(language) != 3:
|
||||
|
|
|
@ -7,7 +7,6 @@ import re
|
|||
from xml.dom.minidom import parseString
|
||||
import json
|
||||
|
||||
import feedparser
|
||||
import ox
|
||||
from ox.cache import read_url, cache_timeout
|
||||
|
||||
|
@ -61,6 +60,7 @@ def get_video_info(id):
|
|||
return info
|
||||
|
||||
def find(query, max_results=10, offset=1, orderBy='relevance'):
|
||||
import feedparser
|
||||
query = quote(query)
|
||||
url = "http://gdata.youtube.com/feeds/api/videos?vq=%s&orderby=%s&start-index=%s&max-results=%s" % (query, orderBy, offset, max_results)
|
||||
data = read_url(url)
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
chardet
|
||||
feedparser
|
||||
six>=1.5.2
|
||||
|
|
2
setup.py
2
setup.py
|
@ -50,7 +50,7 @@ setup(
|
|||
download_url="https://code.0x2620.org/python-ox/download",
|
||||
license="GPLv3",
|
||||
packages=['ox', 'ox.torrent', 'ox.web'],
|
||||
install_requires=['six>=1.5.2', 'chardet', 'feedparser'],
|
||||
install_requires=['six>=1.5.2', 'chardet'],
|
||||
keywords=[
|
||||
],
|
||||
classifiers=[
|
||||
|
|
Loading…
Reference in a new issue