Image 01
profile-image

ivanthechemist

Pornhub

VLC Playlist Parsers by palladium 93 comments

There is one improvement that can be made and that is to use save, instead of Stream. It will always save the full duration. - Mar 21 2021
Pornhub

VLC Playlist Parsers by palladium 93 comments

Latest update works great :) For people looking forward to rewatching without wasting bandwith or smth, here are the steps for persisting the videos locally:
1. Open a PH link - make sure the total duration is as expected.
2. View the playlist
3. Right-click the desired PH entry
4. Choose Stream -> Add a file -> Pick a conversion method (I use a custom preset with just a copy of the video and audio tracks to save time and preserve quality) -> Stream.
5. You will notice that a new entry has been added to the playlist. Double-clik it.
6. Wait for the operation to finish :) - Mar 21 2021
Pornhub

VLC Playlist Parsers by palladium 93 comments

Some videos don't have an HD version, even if that is listed in defaultQuality. Therefore, they don't have the link in the response. So at the moment the cycle plays the first available resolution, which is not the highest available. I tried to sort in different ways, but I somehow always ended up with a sort by first digit, not by number. If you know Lua I think it is trivial to fix so that the order is highest res video that has a link.
Also, this skips the download restrictions on FHD video, as it can be easily downloaded with VLC. - Sep 24 2019
Pornhub

VLC Playlist Parsers by palladium 93 comments

There is a small issue with the script that I couldn't fix. The resolutions in the defaultQuality response are not ordered, but the cycle is taking the first available. This leads to videos playing by default in 480p. I don't have enough experience with Lua to fix the algorithm to work with a sorted whatever data structure, so I have replaced the following code:
local available_resolutions = string.match(line, "\"defaultQuality\":%[(.-)%]")
for resolution in string.gmatch(available_resolutions, "[^,]+") do
with
local hard_res = {1080,720,480,240}
for i, resolution in ipairs(hard_res) do

I have tested that it works with 1080p 60fps source. - Sep 23 2019
Pornhub

VLC Playlist Parsers
by palladium

8.4
10   Mar 21 2021
Latest update works great :) For people looking forward to rewatching without wasting bandwith or smth, here are the steps for persisting the videos locally: 1. Open a PH link - make sure the total duration is as expected. 2. View the playlist 3. Right-click the desired PH entry 4. Choose Stream -> Add a file -> Pick a conversion method (I use a custom preset with just a copy of the video and audio tracks to save time and preserve quality) -> Stream. 5. You will notice that a new entry has been added to the playlist. Double-clik it. 6. Wait for the operation to finish :)