Last active
September 19, 2020 22:09
-
-
Save xatuke/d30f08e574bf9f94aa66c70cbf5f4df6 to your computer and use it in GitHub Desktop.
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
| #!/usr/bin/python3 | |
| import requests | |
| import re | |
| folder = input() | |
| data = requests.get(folder) | |
| lines = data._content.decode('utf-8') | |
| files = re.findall('href="(.*)"', lines) | |
| for i in range(1, len(files)): | |
| print(folder+files[i]) |
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
| echo "<folder_url>" | python mpvplaylist.py | mpv --playlist=- --playlist-start=X |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment