Eisa01 / mpv-scripts

This repository contain scripts I have made for mpv media player...
BSD 2-Clause "Simplified" License
504 stars 35 forks source link

SmartCopyPaste: Paste URL+Referer #83

Open candrapersada opened 1 year ago

candrapersada commented 1 year ago

how to use SmartCopyPaste for Paste URL+Referer?

Eisa01 commented 1 year ago

Can you clarify, provide a sample and expected behavior.

candrapersada commented 1 year ago

"https://hive.gdriveplayer.link/qEqvJsRGoHdzVsg8KRk518kKteWiMYzWsBouQWhC99lEY0sv92qSJAbLb4A6LIAcHmd6JP0GksgTb_uljGB0zQ/LNXJkPzWO9RYDsmPzYVv6wXFIrdDGQ2s0vk7NVEZaeA/360.m3u8" "https://gdriveplayer.link/"

Eisa01 commented 1 year ago

Pasting without double quotes should work. Also if anything else is expected clarify please

candrapersada commented 1 year ago

https://hive.gdriveplayer.link/UkMjmkTA79SdkahtbkUD4qDcCcXB4AXsg-V1JrAyT9FrI6jmpcx0yj9dln4eQygAPaLmSuekYcfopNBdrpstzg/bXjDRFlTjcbxObMDFEwxkehZv6C6UFTBdPGLO4hdrKM/video.m3u8+https://gdriveplayer.link/ not working

Eisa01 commented 1 year ago

Why did you merge both urls with +? Keep them separate with space

candrapersada commented 1 year ago

https://hive.gdriveplayer.link/UkMjmkTA79SdkahtbkUD4qDcCcXB4AXsg-V1JrAyT9FrI6jmpcx0yj9dln4eQygAPaLmSuekYcfopNBdrpstzg/bXjDRFlTjcbxObMDFEwxkehZv6C6UFTBdPGLO4hdrKM/video.m3u8 https://gdriveplayer.link/ not working

Eisa01 commented 1 year ago

Are you sure that the videos inside the URLs you're pasting is actually playable by mpv? I am assuming you only need the first URL, and probably the first URL is not playable by your mpv instance.

Try dragging and dropping the first URL into mpv, SmartCopyPaste is only able to play whatever is playable by mpv, it will not extend the support for additional URLs that are not being detected by mpv itself.

candrapersada commented 1 year ago
mpv https://hive.gdriveplayer.link/UkMjmkTA79SdkahtbkUD4qDcCcXB4AXsg-V1JrAyT9FrI6jmpcx0yj9dln4eQygAPaLmSuekYcfopNBdrpstzg/bXjDRFlTjcbxObMDFEwxkehZv6C6UFTBdPGLO4hdrKM/360.m3u8 --referrer=https://gdriveplayer.link/
Eisa01 commented 1 year ago

Alright, now I see what you mean. I'll keep this open and see if it is actually possible to specify flags while pasting.

Currently there is no way to specify mpv flags via pasting, I will check the possibility and update later.