lbry.go/ytsync
Niko Storni 788857d2c3
add disk space check
remove unneeded panics
improve error handling
add tests
fix error checking that was comparing for exact values
sort imports
2018-07-12 08:24:43 -04:00
..
redisdb recover ytsync panics when processing videos, switch to our errors everywhere 2018-03-09 11:47:38 -05:00
sources add slack logging 2018-07-12 08:21:15 -04:00
count.go recover ytsync panics when processing videos, switch to our errors everywhere 2018-03-09 11:47:38 -05:00
README.md Update README.md 2018-02-22 13:14:55 -05:00
setup.go address more errors 2018-07-12 08:21:16 -04:00
splitter.py jack's splitter code 2017-10-17 19:13:39 -04:00
ytsync.go add disk space check 2018-07-12 08:24:43 -04:00
ytsync_test.go add tests 2018-07-12 08:19:05 -04:00

YT Sync Process

  • make sure you don't have a .lbryum/wallets/default_wallet
    • delete existing wallet if there's nothing you need there, or better yet, move it somewhere else in case you need it later
  • make sure daemon is stopped and can be controlled with systemctl
  • run lbry ytsync YOUTUBE_KEY LBRY_CHANNEL_NAME YOUTUBE_CHANNEL_ID
  • after sync is complete, daemon will be stopped and wallet will be moved to ~/wallets/
  • now mark content as synced in doc

Running the sync command for a channel that was already started will resume the sync. This can also be used to update a channel with new content that was put on Youtube since the last sync.


Add this to cron to delete synced videos that have been published:

*/10 * * * * (/bin/ls /tmp/ | /bin/grep -q ytsync && /usr/bin/find /tmp/ytsync* -mmin +20 -delete) || true