Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#get video m3u list from har dump grep m3u 1.har|cut -d\" -f4|grep origin|grep 'http'|sort -u #get information about each video cat 1.har|grep wistiajson|grep http|cut -d\" -f4|sort -u|while read url;do wget -qO- "$url" |tee -a info.txt;echo "" >> info.txt;done ####script to download videos and name them######### #!/bin/bash cat info.txt|while read line; do url="$(echo "$line"|tr ',' '\n'|grep '"url":'|head -n 1|cut -d\" -f4)" name="$(echo "$line"|tr ',' '\n'|grep '"name":'|head -n 1|cut -d\" -f4)" echo "$name -- $url" wget "$url" -O "$name" done =======================Old stuff that might be useful================================= #rename video file based one duration for v in videos/*;do d="$(ffprobe -show_format "$v" 2>/dev/null | grep duration | sed 's/.*=//'|cut -d\. -f1)"; n="$(cat info.txt |tr ',' '\n'|grep "\"duration\":$d" -B1|head -n1|cut -d\" -f4)"; cp "$v" "videos2/$n"; echo "$n"; done #if some missed use md5sum to remove duplicates find . -type f \ | xargs md5sum \ | sort -k1,1 \ | uniq -Dw32 \ | while read hash file; do [ "${prev_hash}" == "${hash}" ] && rm -v "${file}" prev_hash="${hash}"; done
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)