Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
a3887819
Verified
Commit
a3887819
authored
Apr 14, 2020
by
Chocobozzz
Browse files
Add log in peertube watch script on error
parent
624a0221
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/tools/peertube-watch.ts
View file @
a3887819
...
...
@@ -43,5 +43,10 @@ function run (url: string, program: any) {
url
.
replace
(
'
videos/watch
'
,
'
download/torrents
'
)
+
`-
${
program
.
resolution
}
.torrent`
execSync
(
cmd
+
args
)
try
{
execSync
(
cmd
+
args
)
}
catch
(
err
)
{
console
.
error
(
'
Cannto exec command.
'
,
err
)
process
.
exit
(
-
1
)
}
}
Write
Preview
Supports
Markdown
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