Skip to content

Commit

Permalink
adapt new annie and update submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
wwqgtxx committed Oct 21, 2018
1 parent 7e95652 commit ed90568
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions wwqLyParse/parsers/annieparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ def _try_parse_info(self, raw_text):

# parse for parse_url
def _parse_parse_url(self, raw, _format):
if raw.get('streams'):
raw['Formats'] = raw['streams']
stream = raw['Formats'].get(_format, None)
if stream is None:
for item in raw['Formats'].keys():
Expand All @@ -150,6 +152,8 @@ def _parse_parse_url(self, raw, _format):
def _parse_parse(self, raw):
out = {'type': 'formats', 'name': raw['Title'] + '_' + raw['Site'], 'data': []}
stream = []
if raw.get('streams'):
raw['Formats'] = raw['streams']
for _format, s in raw['Formats'].items():
s['_format'] = _format
stream.append(s)
Expand Down
2 changes: 1 addition & 1 deletion wwqLyParse/ykdl
2 changes: 1 addition & 1 deletion wwqLyParse/you-get

0 comments on commit ed90568

Please sign in to comment.