Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
3.4 kB
3
Indexable
Never
#Ignore Errors
-i 

#Main Path
-P "/downloads/"

#Temp Path
-P "temp:/tempvideo/"

#File Name and Location
-o "%(extractor_key)s/%(uploader)s - %(title)s - %(id)s.%(ext)s" 

#Channel List for Downloads
--batch-file="/configs/channel_list"

#Archive File
--download-archive="/configs/downloaded"

#Rate Limit
--limit-rate 10M

#Do not download live broadcasts
--match-filter !is_live

#--min-views 8

#Download previous 2 videos
--playlist-end 2

#Ignore these names in Title
--reject-title "%SUTFF%"

#Download after 1 week ago
--dateafter now-1weeks

#Video Format Options
--merge-output-format 'mp4'

#Post-Processing Options
--embed-thumbnail
--embed-metadata

#SponsorBlock Options
--sponsorblock-mark 'all'

#Discord Customization
--parse-metadata "metube.domain.com:%(footer)s"
--parse-metadata "%DISCORDWEBHOOK%

#Pick correct URL and Images
--parse-metadata "https\://www.youtube.com/channel/%(channel_id)s:%(yt_author_url)s"
--parse-metadata "https\://www.twitch.tv/(%uploader)s:%(twitch_author_url)s"
--parse-metadata "%(yt_author_url,twitch_author_url)s:%(author_url)s"

--parse-metadata "%(extractor)s:%(author_icon)s"
--replace-in-metadata "author_icon" "youtube" "https://raw.githubusercontent.com/github/explore/d744245de144b89f3e3462949e08bfc91eda7fcf/topics/youtube/youtube.png"
--replace-in-metadata "author_icon" "twitch:vod" "https://cdn0.iconfinder.com/data/icons/social-network-7/50/16-512.png"

--parse-metadata "https\://i.ytimg.com/vi/%(display_id)s/hqdefault.jpg:%(main_img)s"
--replace-in-metadata "main_img" "https\\://i\.ytimg\.com/vi/v[0-9]+/hqdefault\.jpg" "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Twitch_Logo.jpg/800px-Twitch_Logo.jpg"

#Format metadata for Discord
--parse-metadata "%(description|No Description Available)s:%(description_discord)s"
--parse-metadata "%(title)s:%(title_discord)s"
--parse-metadata "%(uploader)s:%(uploader_discord)s"
--replace-in-metadata 'description_discord,title_discord,uploader_discord' "'" '’'
--replace-in-metadata 'description_discord,title_discord,uploader_discord' "\n" '\\n'
--replace-in-metadata 'description_discord,title_discord,uploader_discord' "\\$" '\$'
--replace-in-metadata 'title_discord' "/" '-'
--replace-in-metadata 'title_discord' "\|" '-'
--replace-in-metadata 'title_discord' "\"" '’'

#Clean Up Names
--replace-in-metadata "extractor" "youtube" "YouTube"
--replace-in-metadata "extractor" "twitch:vod" "Twitch"

#Write Metadata for Plex
--add-metadata

#Send Discord Notification 
--exec 'echo "bash /notifybot/discord.sh \
--webhook-url=\"%(webhook)s\" \
--username \"%(uploader_discord)s - MeTube Bot\" \
--avatar \"https://raw.githubusercontent.com/alexta69/metube/master/favicon/android-chrome-384x384.png\" \
--title \"%(title_discord)s\" \
--description \"%(description_discord)s\" \
--color \"0xFFFFFF\" \
--url \"%(original_url)s\" \
--author \"Channel: %(uploader_discord)s\" \
--author-url \"%(author_url)s\" \
--author-icon \"%(author_icon)s\" \
--image \"%(main_img)s\" \
--field \"Duration;%(duration_string)s\" \
--field \"Platform;%(extractor)s\" \
--footer \"%(footer)s\" \
--footer-icon \"https://raw.githubusercontent.com/alexta69/metube/master/favicon/android-chrome-384x384.png\" \
--timestamp" > "/configs/notificationscripts/%(title_discord)s.sh" 2>&1'
Leave a Comment