airikr / YouTube video downloader

Last active 3 months ago

Like 0

A YouTube downloader created by ChatGPT. See the docblock for more information

airikr revised this gist 6 months ago · 3efbcd9

1 file changed, 1 insertion, 1 deletion

crontab
@@ -1,3 +1,3 @@
1 1 # Add this line to crontab -e as sudo (sudo su) to automate the whole thing
2 2 # As it is right now, videos will be downloaded from YouTube every 6 hour (00:00 > 06:00 > 12:00 > 18:00 > repeat)
3 - 0 */6 * * * /bin/bash /mnt/ExtSSD/Backups/Bash/dlyt.sh >> /mnt/ExtSSD/Backups/Bash/dlyt.log 2>&1
3 + 0 */6 * * * /bin/bash /dir/to/dlyt.sh >> /dir/to/dlyt.log 2>&1

airikr revised this gist 6 months ago · dda1513

1 file changed, 3 insertions

crontab (file created)
@@ -0,0 +1,3 @@
1 + # Add this line to crontab -e as sudo (sudo su) to automate the whole thing
2 + # As it is right now, videos will be downloaded from YouTube every 6 hour (00:00 > 06:00 > 12:00 > 18:00 > repeat)
3 + 0 */6 * * * /bin/bash /mnt/ExtSSD/Backups/Bash/dlyt.sh >> /mnt/ExtSSD/Backups/Bash/dlyt.log 2>&1

airikr revised this gist 6 months ago · b6a93cd

1 file changed, 1 insertion, 1 deletion

dlyt.sh
@@ -102,7 +102,7 @@ find "$YTDLP" -mindepth 1 -maxdepth 1 -type d | while read -r SHOW; do
102 102 done | sort | cut -d'|' -f2 | while read -r JSON; do
103 103 # Explanation of pipe:
104 104 # 1. `jq` extracts upload_date from each .info.json
105 - # 2. `echo "$DATE|$JSON"` pairikrs date with filename
105 + # 2. `echo "$DATE|$JSON"` pairs date with filename
106 106 # 3. `sort` sorts alphabetically → chronological because YYYYMMDD
107 107 # 4. `cut -d'|' -f2` returns only the filename, in sorted order
108 108 BASEFILE="${JSON%.info.json}" # Base filename without extension

airikr revised this gist 6 months ago · 726e50e

No changes

airikr revised this gist 6 months ago · 11445c7

No changes

airikr revised this gist 6 months ago · 064806e

1 file changed, 1 insertion, 1 deletion

dlyt.sh
@@ -35,7 +35,7 @@ CHANNELS="$BASE/channels.txt" # List of channels
35 35
36 36 mkdir -p "$YTDLP" # Create download folder if missing
37 37
38 - sudo chown -R airikr:airikr "${YTDLP}" # Temporarily give ownership to the user to allow writing
38 + sudo chown -R user:user "${YTDLP}" # Temporarily give ownership to the user to allow writing
39 39
40 40
41 41

airikr revised this gist 6 months ago · 3675df1

1 file changed, 52 insertions

channels.txt (file created)
@@ -0,0 +1,52 @@
1 + #https://piped.video/channel/UCRiYVwfoEnKfweISfKytuQw # Akimbo
2 + https://piped.video/channel/UCxXlxVmarXu3n340ah5xwqA # Astrobiscuit
3 + https://piped.video/channel/UC-9b7aDP6ZN0coj9-xFnrtw # Astrum
4 + #https://piped.video/channel/UCTEEa35OCDcJDh-lwbXehdg # CantrellCaving
5 + #https://piped.video/channel/UCbW17b5g1Eb90M457eOykPg # Chinese cuisine
6 + https://piped.video/channel/UCg6gPGh8HU2U01vaFCAsvmQ # Chris Titus Tech
7 + #https://piped.video/channel/UCvfqpaehdaqtkXPNhvJRyGA # Dash Cam Owners Australia
8 + https://piped.video/channel/UCdC0An4ZPNr_YiFiYoVbwaw # Daily Dose of Internet
9 + https://piped.video/channel/UCmdmZp1K_kjXYBKgyqg_5LA # Daily Dose of Gaming
10 + https://piped.video/channel/UCk6_V9EQQ7c8fuWzFKcCNzQ # Daily Dose of Pets
11 + https://piped.video/channel/UCTIa8uo_aisNdqQpMf4wKTg # DailyDoseOfInternetCats
12 + #https://piped.video/channel/UCnetiRHPnIMBCm-yY4m69qA # Dashcam Lessons
13 + #https://piped.video/channel/UCOS7jdle9zw_HnKW4ytZnDw # Dashcam Nation
14 + #https://piped.video/channel/UCqOoboPm3uhY_YXhvhmL-WA # Discovery
15 + https://piped.video/channel/UCxByVUuLdxxiqQVmbOnDEzw # Erik Granqvist
16 + #https://piped.video/channel/UCPq2ETz4aAGo2Z-8JisDPIA # ESL Counter-Strike
17 + #https://piped.video/channel/UCwF3VyalTHzL0L-GDlwtbRw # EVE Online
18 + #https://piped.video/channel/UC73dVtWf9mpjiWYkXyIlm7A # Exploring the Unbeaten Path
19 + https://piped.video/channel/UCPDis9pjXuqyI7RYLJ-TTSA # FailArmy
20 + https://piped.video/channel/UCt8CdzMEoTie3iix3KmvV7A # GameSprout
21 + #https://piped.video/channel/UC5SlWFFu-YvbujLKa0zoNGw # Idiot Drivers
22 + #https://piped.video/channel/UCXE0IwEN5HkDohBq2ebv5Bw # Idiots In Cars
23 + https://piped.video/channel/UCw7FkXsC00lH2v2yB5LQoYA # jackfrags
24 + https://piped.video/channel/UCWFKCr40YwOZQx8FHU_ZqqQ # JerryRigEverything
25 + https://piped.video/channel/UCla1P6TzCetvMHJ6ZHyXxgA # Kanal 5 Sverige
26 + https://piped.video/channel/UCsXVk37bltHxD1rDPwtNM8Q # Kurzgesagt - In a Nutshell
27 + #https://piped.video/channel/UCpJmBQ8iNHXeQ7jQWDyGe3A # Life Noggin
28 + #https://piped.video/channel/UCXuqSBlHAE6Xw-yeJA0Tunw # Linus Tech Tips
29 + https://piped.video/channel/UCS1-E3fjfJmY5O2HqhXM5CQ # Learn Japanese Channel
30 + #https://piped.video/channel/UCKIrZr7WuPFgFy7OfkAuHOw # MegaDrivingSchool
31 + #https://piped.video/channel/UCS67mNnpfnHsU3IQYNHLToA # Most Dangerous
32 + #https://piped.video/channel/UCpVm7bg6pXKo1Pr6k5kxG9A # National Geographic
33 + #https://piped.video/channel/UCDPk9MG2RexnOMGTD-YnSnA # Nat Geo Wild
34 + #https://piped.video/channel/UCL-g3eGJi1omSDSz48AML-g # NVIDIA GeForce
35 + https://piped.video/channel/UC-ihxmkocezGSm9JcKg1rfw # OperatorDrewski
36 + https://piped.video/channel/UCfpCQ89W9wjkHc8J_6eTbBg # Outdoor Boys
37 + #https://piped.video/channel/UCKGe7fZ_S788Jaspxg-_5Sg # PC Security Channel
38 + https://piped.video/channel/UCwdsaWtA70AiVeALp2ux6RA # RamenStyle
39 + #https://piped.video/channel/UCs5QhJQF9I1m81bCJy0WO-w # Real History
40 + #https://piped.video/channel/UCB1qBlpuLMi2ydz8zxFfLfw # Ribecka
41 + https://piped.video/channel/UC8kQrh-1JyFZ3RiTHHKMt7A # Ruby Dashcam Academy
42 + https://piped.video/channel/UCRtsZ5Iak9wSLsQLQ3XOAeA # SciManDan
43 + #https://piped.video/channel/UCZpZTSdvEgVf0BqTqf9NjNg # Sean Dalton
44 + https://piped.video/channel/UCpXwMqnXfJzazKS5fJ8nrVw # shiey
45 + #https://piped.video/channel/UCUMwsAsbK-SsW5GHufJJFUA # SHL
46 + https://piped.video/channel/UCpB959t8iPrxQWj7G6n0ctQ # SSSniperWolf
47 + https://piped.video/channel/UCQD3awTLw9i8Xzh85FKsuJA # SovietWomble
48 + #https://piped.video/channel/UCOt5hVyS2-nbcJ3_FP41Ajg # Tomographic
49 + #https://piped.video/channel/UCHnyfMqiRRG1u-2MsSQLbXA # Veritasium
50 + https://piped.video/channel/UCYfnmhHA2O-q1JHPJDWpaOQ # Volvo Dashcam
51 + #https://piped.video/channel/UCvz84_Q0BbvZThy75mbd-Dg # Zack D. Films
52 + #https://piped.video/channel/UC4Tklxku1yPcRIH0VVCKoeA # Quantum Tech HD

airikr revised this gist 6 months ago · 95df4c9

6 files changed, 269 insertions

dlyt.sh (file created)

Diff is too large to be shown

jellyfin-example-1.jpg (file created)

Binary file changes are not shown

jellyfin-example-2.jpg (file created)

Binary file changes are not shown

jellyfin-example-3.jpg (file created)

Binary file changes are not shown

jellyfin-example-4.jpg (file created)

Binary file changes are not shown