Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lbry
ytsync
Commits
8c2a8262
Commit
8c2a8262
authored
Jul 12, 2019
by
ci
Browse files
fix bugs
parent
6f486717
Changes
2
Hide whitespace changes
Inline
Side-by-side
manager/ytsync.go
View file @
8c2a8262
...
...
@@ -649,7 +649,7 @@ func (s *Sync) startWorker(workerNum int) {
if
err
!=
nil
{
logMsg
:=
fmt
.
Sprintf
(
"error processing video %s: %s"
,
v
.
ID
(),
err
.
Error
())
log
.
Errorln
(
logMsg
)
if
strings
.
Contains
(
err
.
Error
(),
"interrupted by user"
)
{
if
strings
.
Contains
(
strings
.
ToLower
(
err
.
Error
()
)
,
"interrupted by user"
)
{
return
}
fatalErrors
:=
[]
string
{
...
...
@@ -885,6 +885,7 @@ func (s *Sync) processVideo(v video) (err error) {
"Unable to extract signature tokens"
,
"the video is too big to sync, skipping for now"
,
"video is too long to process"
,
"This video contains content from"
,
"no compatible format available for this video"
,
"Watch this video on YouTube."
,
"have blocked it on copyright grounds"
,
...
...
sources/youtubeVideo.go
View file @
8c2a8262
...
...
@@ -198,7 +198,7 @@ func (v *YoutubeVideo) download(useIPv6 bool) error {
"--match-filter"
,
fmt
.
Sprintf
(
"duration <= %d"
,
int
(
math
.
Round
(
v
.
maxVideoLength
*
3600
))),
"-fbestvideo[ext=mp4][height<=1080]+bestaudio[ext!=webm]"
,
"-o"
+
strings
.
Trim
Right
(
v
.
getFullPath
(),
".mp4"
),
"-o"
+
strings
.
Trim
Suffix
(
v
.
getFullPath
(),
".mp4"
),
"--merge-output-format"
,
"mp4"
,
}
...
...
@@ -229,7 +229,7 @@ func (v *YoutubeVideo) download(useIPv6 bool) error {
sourceAddress
,
)
}
else
{
log
.
Info
ln
(
"using IPv4: %s"
,
sourceAddress
)
log
.
Info
f
(
"using IPv4: %s"
,
sourceAddress
)
ytdlArgs
=
append
(
ytdlArgs
,
"-4"
,
"--source-address"
,
...
...
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