This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This script can be used to clear all videos from youtube's built-in "watch later" playlist which has a limit of 5,000 videos. | |
| // Without this, you would need to click the remove button on each video in the list. | |
| // Youtube made changes recently that caused errors for a previously working script. | |
| // Script written by: janthedeveloper (https://github.com/JanTheDeveloper) | |
| // Bookmark wrapper added by: shelldonhull (https://github.com/sheldonhull) | |
| // Full conversation here: https://gist.github.com/astamicu/eb351ce10451f1a51b71a1287d36880f#file-readme-md | |
| // 1. Save the javascript text below as a bookmark in google chrome(Simply replace the URL field in any existing bookmark, and give the bookmark any name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from subprocess import getstatusoutput as shell | |
| from subprocess import Popen,PIPE,STDOUT | |
| import shlex | |
| import re | |
| import argparse | |
| import os | |
| from tqdm import tqdm | |
| from math import ceil,log10 | |
| def get_video_length(fname): |