summary refs log tree commit diff
path: root/test.sh
diff options
context:
space:
mode:
authorPawky Languish2024-11-28 03:18:20 +0000
committerPawky Languish2024-11-28 03:18:20 +0000
commit763f96948f39a20d79f7ec68a924966c2b3db761 (patch)
tree4b522062a472d0cbd87210f7e57a779651ae0a1a /test.sh
parent1c083501b82eba4e927988bc84547ba76bb6f513 (diff)
add tests and make youtube use oembed (no more bot block, at the cost of VERY minimal info)
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/test.sh b/test.sh
new file mode 100755
index 0000000..fdcbba3
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+#just random urls to test the modules
+
+./bandcamp.py https://austinwintory.bandcamp.com/album/stray-gods
+./bandcamp.py https://soundoftheaviators.bandcamp.com/track/writing-on-the-walls-2
+
+#soundcloud and spotify add junk to links if you click "share"
+./soundcloud.py https://soundcloud.com/lindseystomp/sets/artemis-3
+./soundcloud.py 'https://soundcloud.com/lindseystomp/sets/artemis-3?utm_source=clipboard&utm_medium=text&utm_campaign=social_sharing'
+./soundcloud.py https://soundcloud.com/user-152508755/thefatrat-maisy-kay-the-storm-epic-orchestra-remix
+./soundcloud.py 'https://soundcloud.com/user-152508755/thefatrat-maisy-kay-the-storm-epic-orchestra-remix?utm_source=clipboard&utm_medium=text&utm_campaign=social_sharing'
+
+./spotify.py https://open.spotify.com/track/4pY1okPrJvIPBQM0t4i28v
+./spotify.py 'https://open.spotify.com/track/4sOX1nhpKwFWPvoMMExi3q?si=c880ccca72ee435d'
+./spotify.py https://open.spotify.com/album/2hvCFY4DYaKzzkNYd60oS3
+./spotify.py 'https://open.spotify.com/album/1u2ACTYzVNK3vSLG0Ah4H3?si=c1ZT_3YeS8SXkrbErFl6bw'
+
+#youtube oembed does support playlists but ONLY when it's /playlist?list= *NOT* when it is /watch?v=bla&list=
+./youtube.py https://www.youtube.com/watch?v=EUD9UTwXAZY
+./youtube.py https://www.youtube.com/playlist?list=PL0bbUqXsNHE0ZELST3vW_11GDHKDAwLYh
+./youtube.py 'https://www.youtube.com/watch?v=eneLP_P1_fg&list=PL0bbUqXsNHE0ZELST3vW_11GDHKDAwLYh&index=2'