소스 검색

Add details for installation

pull/18/head
mister-monster GitHub 4 년 전
부모
커밋
fb2a0125f2
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. +4
    -2
      README.md

+ 4
- 2
README.md 파일 보기

@@ -12,12 +12,16 @@ If you need to archive a YouTube channel with lots of existing videos, this tool

## Installation

To install, clone the repository to a directory on your machine. Then, navigate to that directory in a terminal and run:

```
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```

This will create a virtual environment for the tool and install all dependencies required to run.

## Dependencies

This tool depends on:
@@ -54,8 +58,6 @@ If <delete_videos> is set to True, videos and metadata will be deleted from the

To run the bot, simply run youtube2peertube.py. The bot will run indefinitely until stopped.

You will need to make sure all dependencies are met.

The first time a channel is found in the config, the most recent videos returned by the youtube RSS endpoint are mirrored, and a new entry is added to channels_timestamps.csv with the timestamp of the last video. Subsequently each channel is checked for an entry in channels_timestamps.csv and only videos later than the last timestamp for the channel's entry are mirrored. The tool decides if it is the first time a channel is found based on whether it has an entry in channels_timestamps.csv. It is designed this way so that the tool can be stopped and restarted without attempting to upload duplicate videos when restarted.

After that, the tool polls all channels in config.toml periodically based on the parameter <poll_frequency> which is in minutes, and mirrors all new videos for each channel as they are found.


불러오는 중...
취소
저장