Peertube - help with imports?

My peertube version: 3.4.1~ynh1
Current version at Github: 3.4.1

TL;WR: there is no tools/peertube-import-videos.js in my installation. Why not? Where can I find it?

I found the description of a youtube-dl script to import video’s into Peertube at PeerTube documentation

When I run the script like

 node dist/server/tools/peertube-import-videos.js \
    -u 'youtube.com' \
    -U 'linh' \
    --password 'thesecretpassword' \
    --target-url 'https://www.youtube.com/watch?v=j2acFek19PU'

it tells me:

I found @yuno 's post about youtube-dl, but I don’t even get that far.
Where should I look for the script? Is the documentation up to date? When I do a general search for ‘import’ in the peertube dir:

# pwd
/var/www/peertube
# ls */*|grep import
scripts/create-import-video-file-job.ts
acorn-import-assertions
create-import-video-file-job.js
#

none of the results have exactly the right name. My Javascript is insufficient to guess whether they actually are the right scripts.

I tried to find the script online (github and framacolibri, for example), but haven’t had a hit (apart from documentation).

The documentation suggests to make an alias to jump to the right directory and to switch user,

but the tools directory in dist/server/ does not exist.

Any idea?

Maybe things are not that difficult :stuck_out_tongue:

While clicking around after being able to log in, the “Administration” pages got this configuration screen where you can turn in HTTP- and torrent-imports:

image

Besides that. there’s an auto-import-ytb plugin, to sync with a Youtube channel, that I didn’t have a closer look at yet.

Anyway, with the ticks “Allow HTTP import” and “Allow torrent import”. The “Publish” button now gives all kinds of options:

Great fun! :slight_smile:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.