An overly complex tool to mirror youtube content to LBRY
Find a file
Alex Grintsvayg 70c6ee7ddb fixes
2017-12-29 18:51:38 -05:00
redisdb big refactor, abort on ctrl-c, proper wallet init and backup 2017-12-28 12:18:01 -05:00
sources big refactor, abort on ctrl-c, proper wallet init and backup 2017-12-28 12:18:01 -05:00
count.go big refactor, abort on ctrl-c, proper wallet init and backup 2017-12-28 12:18:01 -05:00
README.md big refactor, abort on ctrl-c, proper wallet init and backup 2017-12-28 12:18:01 -05:00
setup.go big refactor, abort on ctrl-c, proper wallet init and backup 2017-12-28 12:18:01 -05:00
splitter.py jack's splitter code 2017-10-17 19:13:39 -04:00
ytsync.go fixes 2017-12-29 18:51:38 -05: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 YOUTUBE_CHANNEL_ID LBRY_CHANNEL_NAME --max-tries=5
    • max-tries will retry errors that you will probably get (e.g. failed publishes)
  • 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