remove feedparser

This commit is contained in:
j 2018-01-14 16:47:15 +01:00
parent aae2b07517
commit 2d4bf9212a
4 changed files with 3 additions and 4 deletions

View file

@ -2,12 +2,12 @@
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
import re import re
import feedparser
from ox.cache import read_url from ox.cache import read_url
from ox import find_re, strip_tags from ox import find_re, strip_tags
from ox.iso import langCode2To3, langTo3Code from ox.iso import langCode2To3, langTo3Code
def find_subtitles(imdb, parts = 1, language = "eng"): def find_subtitles(imdb, parts = 1, language = "eng"):
import feedparser
if len(language) == 2: if len(language) == 2:
language = langCode2To3(language) language = langCode2To3(language)
elif len(language) != 3: elif len(language) != 3:

View file

@ -7,7 +7,6 @@ import re
from xml.dom.minidom import parseString from xml.dom.minidom import parseString
import json import json
import feedparser
import ox import ox
from ox.cache import read_url, cache_timeout from ox.cache import read_url, cache_timeout
@ -61,6 +60,7 @@ def get_video_info(id):
return info return info
def find(query, max_results=10, offset=1, orderBy='relevance'): def find(query, max_results=10, offset=1, orderBy='relevance'):
import feedparser
query = quote(query) 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) 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) data = read_url(url)

View file

@ -1,3 +1,2 @@
chardet chardet
feedparser
six>=1.5.2 six>=1.5.2

View file

@ -50,7 +50,7 @@ setup(
download_url="https://code.0x2620.org/python-ox/download", download_url="https://code.0x2620.org/python-ox/download",
license="GPLv3", license="GPLv3",
packages=['ox', 'ox.torrent', 'ox.web'], packages=['ox', 'ox.torrent', 'ox.web'],
install_requires=['six>=1.5.2', 'chardet', 'feedparser'], install_requires=['six>=1.5.2', 'chardet'],
keywords=[ keywords=[
], ],
classifiers=[ classifiers=[