[cleanup] Add more ruff rules (#10149)
Authored by: seproDev Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com> Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
This commit is contained in:
parent
db50f19d76
commit
add96eb9f8
915 changed files with 7028 additions and 7247 deletions
|
|
@ -1,5 +1,4 @@
|
|||
from .common import InfoExtractor
|
||||
from ..compat import compat_str
|
||||
from ..utils import (
|
||||
ExtractorError,
|
||||
int_or_none,
|
||||
|
|
@ -20,7 +19,7 @@ class TheInterceptIE(InfoExtractor):
|
|||
'timestamp': 1450429239,
|
||||
'upload_date': '20151218',
|
||||
'comment_count': int,
|
||||
}
|
||||
},
|
||||
}]
|
||||
|
||||
def _real_extract(self, url):
|
||||
|
|
@ -35,8 +34,8 @@ class TheInterceptIE(InfoExtractor):
|
|||
if post['slug'] == display_id:
|
||||
return {
|
||||
'_type': 'url_transparent',
|
||||
'url': 'jwplatform:%s' % post['fov_videoid'],
|
||||
'id': compat_str(post['ID']),
|
||||
'url': 'jwplatform:{}'.format(post['fov_videoid']),
|
||||
'id': str(post['ID']),
|
||||
'display_id': display_id,
|
||||
'title': post['title'],
|
||||
'description': post.get('excerpt'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue