Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source_forward
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhiwei
source_forward
Commits
364e507d
Commit
364e507d
authored
Aug 21, 2019
by
yangchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加 爱奇艺和优酷来源获取
parent
30c78e18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
+11
-1
src/main/java/com/zhiwei/source_forward/run/MediaSelfSource.java
+1
-1
src/main/java/com/zhiwei/source_forward/util/MatchSource.java
+10
-0
No files found.
src/main/java/com/zhiwei/source_forward/run/MediaSelfSource.java
View file @
364e507d
...
@@ -25,7 +25,7 @@ public class MediaSelfSource {
...
@@ -25,7 +25,7 @@ public class MediaSelfSource {
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
ProxyFactory
.
init
(
"zookeeper://192.168.0.36:2181"
,
"local"
,
GroupType
.
PROVIDER
);
ProxyFactory
.
init
(
"zookeeper://192.168.0.36:2181"
,
"local"
,
GroupType
.
PROVIDER
);
List
<
String
>
urlList
=
new
ArrayList
<>();
List
<
String
>
urlList
=
new
ArrayList
<>();
urlList
.
add
(
"http
://www.360kuai.com/pc/965e4d0b2814eb5bc?cota=3&kuai_so=1&sign=360_e39369d1&refer_scene=so_3
"
);
urlList
.
add
(
"http
s://v.youku.com/v_show/id_XNDA5Nzg4MzA4NA==.html
"
);
List
<
MediaSelfSourceBean
>
u
=
MediaSelfSource
.
getMediaSelfSource
(
urlList
);
List
<
MediaSelfSourceBean
>
u
=
MediaSelfSource
.
getMediaSelfSource
(
urlList
);
for
(
MediaSelfSourceBean
b
:
u
)
{
for
(
MediaSelfSourceBean
b
:
u
)
{
System
.
out
.
println
(
b
.
toString
());
System
.
out
.
println
(
b
.
toString
());
...
...
src/main/java/com/zhiwei/source_forward/util/MatchSource.java
View file @
364e507d
...
@@ -578,6 +578,16 @@ public class MatchSource {
...
@@ -578,6 +578,16 @@ public class MatchSource {
if
(
source
!=
null
&&
!
source
.
equals
(
""
)){
if
(
source
!=
null
&&
!
source
.
equals
(
""
)){
source
=
"博客中国-"
+
source
;
source
=
"博客中国-"
+
source
;
}
}
}
else
if
(
url
.
contains
(
".iqiyi.com"
))
{
source
=
JSONObject
.
parseObject
(
html
.
split
(
"page-info='"
)[
1
].
split
(
"'"
)[
0
]).
getJSONObject
(
"user"
).
getString
(
"name"
);
if
(
source
!=
null
&&
!
source
.
equals
(
""
)){
source
=
"爱奇艺-"
+
source
;
}
}
else
if
(
url
.
contains
(
"v.youku.com"
))
{
source
=
document
.
select
(
"a.sub-name"
).
text
();
if
(
source
!=
null
&&
!
source
.
equals
(
""
)){
source
=
"优酷-"
+
source
;
}
}
}
return
source
;
return
source
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment