$ echo $IPFS_PATH; yt-dlp -j --flat-playlist UUcK436utP3gM0dHZYO97pqw > 1plist1.json 2>1error1.log.txt; cat 1plist1.json | jq ".id" | tr -d \" > 1plist1.txt; fdir=$(yt-dlp --get-filename --skip-download --restrict-filenames --windows-filenames -o "%(channel)s_%(channel_id)s" -- $(head -n1 1plist1.txt)); if [ -f $fdir ]; then sleep 9d; else mkdir $fdir; fi; cd $fdir; mv -n ../1plist1.txt .; mv -n ../1plist1.json .; mv -n ../1error1.log.txt .; utc > 1stats1.txt; chan=$(pwd | grep -o "........................$"); curl -sL "https://www.googleapis.com/youtube/v3/channels?key=$(cat ~/ytapikey1.txt)&part=id,snippet,contentDetails,statistics,topicDetails,status,brandingSettings,localizations&id=$chan" > 1chan1.json; chanp=$(jq ".items[].snippet.thumbnails.high.url" 1chan1.json | tr -d \"); chand=$(echo $chanp | sed "s/=.*/=s0/g"); curl -sL $chanp > 1pfp1.img.jpg; curl -sL $chand > 1pfp2.img.png; banc=$(curl -sL https://y.com.sb/channel/$chan | grep "=w2560-fcrop64=" | sed "s/\" alt=.*//g" | sed "s/.*\".ggpht/https:\/\/yt3.googleusercontent.com/g"); band=$(echo $banc | sed "s/=.*/=w0/g"); curl -sL $banc > 1banner1.img.jpg; curl -sL $band > 1banner2.img.png; wc -l 1plist1.txt >> 1stats1.txt; cat 1plist1.txt | xargs -d "\n" sh -c 'for args do wget --spider --no-verbose "https://tpa.mares.workers.dev/?output=html&id=$args" -o temp.txt; cat temp.txt >> 1plist2.txt; done' _; rm temp.txt; grep -v '!!!\| 200 OK$' 1plist2.txt | sed "s/.*=//g" | sed "s/://g" > 1plist3.txt; ids=1plist3.txt; bash <(echo -n "ids=1plist3.txt;"; ipfs cat bafkreidih3jklvypuib2lisvi2du4lodhdjt5ebr36o7v52f6xmegltlty); cat $ids | xargs -d "\n" sh -c 'for args do fname=$(yt-dlp --restrict-filenames --windows-filenames --skip-download --get-filename -o "%(title)s-%(channel)s-%(upload_date)s-%(extractor)s-%(resolution)s-%(id)s.apimeta.txt" -- $args 2>>1error1.log.txt); curl -sL "https://www.googleapis.com/youtube/v3/videos?key=$(cat ~/ytapikey1.txt)&part=snippet,id,contentDetails,liveStreamingDetails,localizations,player,recordingDetails,statistics,status,topicDetails&id=$args" > $fname; done' _; curl -sL "https://www.googleapis.com/youtube/v3/channelSections?key=$(cat ~/ytapikey1.txt)&part=id,snippet,contentDetails&channelId=$chan" > 1_channel_sections_1.json; curl -sL "https://www.googleapis.com/youtube/v3/playlists?key=$(cat ~/ytapikey1.txt)&part=id,snippet,contentDetails,localizations,player,status&channelId=$chan&maxResults=50" > 1_channel_playlists_1.json; curl -sL "https://www.googleapis.com/youtube/v3/subscriptions?key=$(cat ~/ytapikey1.txt)&part=id,snippet,contentDetails,subscriberSnippet&channelId=$chan&maxResults=50" > 1_channel_subscriptions_1.json; utc >> 1stats1.txt; bash <(ipfs cat bafkreibmctj6wjeajcf2ce36efsatxicjfazuo63fow46wpmk3wstwfcxa); cd ..