Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
ytdl-patched
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lesmiscore
ytdl-patched
Commits
d1bf2e19
Unverified
Commit
d1bf2e19
authored
2 years ago
by
HobbyistDev
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[extractor/fuyin] Add extractor (#4151)
Closes #2871 Authored by: HobbyistDev
parent
c800598c
No related branches found
Branches containing commit
Tags
1639276434
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
yt_dlp/extractor/_extractors.py
+1
-0
1 addition, 0 deletions
yt_dlp/extractor/_extractors.py
yt_dlp/extractor/fuyintv.py
+30
-0
30 additions, 0 deletions
yt_dlp/extractor/fuyintv.py
with
31 additions
and
0 deletions
yt_dlp/extractor/_extractors.py
+
1
−
0
View file @
d1bf2e19
...
...
@@ -563,6 +563,7 @@
)
from
.funk
import
FunkIE
from
.fusion
import
FusionIE
from
.fuyintv
import
FuyinTVIE
from
.gab
import
(
GabTVIE
,
GabIE
,
...
...
This diff is collapsed.
Click to expand it.
yt_dlp/extractor/fuyintv.py
0 → 100644
+
30
−
0
View file @
d1bf2e19
from
.common
import
InfoExtractor
from
..utils
import
traverse_obj
class
FuyinTVIE
(
InfoExtractor
):
_VALID_URL
=
r
'
https?://(?:www\.)?fuyin\.tv/html/(?:\d+)/(?P<id>\d+)\.html
'
_TESTS
=
[{
'
url
'
:
'
https://www.fuyin.tv/html/2733/44129.html
'
,
'
info_dict
'
:
{
'
id
'
:
'
44129
'
,
'
ext
'
:
'
mp4
'
,
'
title
'
:
'
第1集
'
,
'
description
'
:
'
md5:21a3d238dc8d49608e1308e85044b9c3
'
,
}
}]
def
_real_extract
(
self
,
url
):
video_id
=
self
.
_match_id
(
url
)
json_data
=
self
.
_download_json
(
'
https://www.fuyin.tv/api/api/tv.movie/url
'
,
video_id
,
query
=
{
'
urlid
'
:
f
'
{
video_id
}
'
})
webpage
=
self
.
_download_webpage
(
url
,
video_id
,
fatal
=
False
)
return
{
'
id
'
:
video_id
,
'
title
'
:
traverse_obj
(
json_data
,
(
'
data
'
,
'
title
'
)),
'
url
'
:
json_data
[
'
data
'
][
'
url
'
],
'
ext
'
:
'
mp4
'
,
'
description
'
:
self
.
_html_search_meta
(
'
description
'
,
webpage
),
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment