Enhance Your Channels DVR Workflow with a YouTube Processing Script!
Hi Channels DVR Community,
Here is a tool I’ve developed to complement TubeArchivist and improve workflows for Channels DVR users. This Python script processes YouTube videos to prepare them for seamless integration into your Channels DVR library.
Key Features:
- YouTube Metadata Retrieval: Automatically fetches video metadata (title, description, uploader, upload date) using the YouTube Data API.
-
NFO File Generation: Creates
.nfo
files compatible with Channels DVR (when it starts recognizing them) for better video organization and metadata recognition. -
File Renaming and Organization:
- Renames video files based on their titles for consistency.
- Organizes videos into directories named after their uploaders for easier browsing.
-
Notifications via Apprise:
- Receive processing summaries through your favorite notification platforms (e.g., Pushover, Discord, Slack, Email).
-
Channels DVR Integration:
- Optionally triggers a Channels DVR metadata refresh after processing, ensuring your library stays up-to-date.
-
Remove Old Files:
- Optionally remove files older than X days
Use Cases
-
YouTube Archiving:
If you use TubeArchivist to archive YouTube videos, this script takes your workflow a step further by generating.nfo
files and organizing videos into a structure that should be easier to work with in Channels DVR (Videos). -
Enhanced Library Management:
Keep your YouTube videos organized, properly labeled.
Installation and Usage
-
Clone this repository:
git clone https://github.com/peppy6582/TubeArchivist-Accessory-Script.git cd TubeArchivist-Accessory-Script
-
Make the script executable:
chmod +x youtube-process.py
-
Install Python dependencies:
pip install -r requirements.txt
-
Configure the script by creating a
config.txt
file:VIDEO_DIRECTORY=/path/to/TubeArchivist/YouTube/ CHANNELS_DIRECTORY=/path/to/TubeArchivist/YouTube Channels/ PROCESSED_FILES_TRACKER=processed_files.txt YOUTUBE_API_KEY=your-youtube-api-key APPRISE_URL=pover://your_user_key@your_api_token CHANNELS_DVR_API_REFRESH_URL=http://YOUR_IP_ADDRESS:8089/dvr/scanner/scan DELETE_AFTER=30 (removes files older than x days)
-
Required:
-
VIDEO_DIRECTORY
: Directory where TubeArchivist stores downloaded videos. -
CHANNELS_DIRECTORY
: Directory to organize videos by uploader. -
YOUTUBE_API_KEY
: YouTube Data API key.
-
-
Optional:
-
APPRISE_URL
: URL for sending notifications via Apprise-supported services. -
CHANNELS_DVR_API_REFRESH_URL
: URL for Channels DVR metadata refresh. -
DELETE_AFTER
: Remove files older than X days
-
-
Required:
Why the Channels DVR Community Might Love This
If you enjoy building custom media libraries and maximizing the potential of Channels DVR, this script helps you integrate YouTube content into your library effortlessly. By automatically generating metadata and keeping files organized, you’ll spend less time managing files and more time enjoying your library!
Get Started!
The script is available on GitHub:
TubeArchivist Accessory Script
I’d love to hear your feedback or suggestions for improving the script. Let me know if you have any questions or need help setting it up.