You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Created the GenerateMenu function, which reads in a dictionary of menu
items, and turns them into DirectoryObjects and returns them in a
ObjectContainer. Used this function everywhere I could to cut down on
repetition and lines of code. Created a language file to hold some
string constants. But most importantly, I found some artwork to use as
the background... And I couldn't decide which one to use so I have 2
alternates sitting in the Resources folder. In v0.3 I plan to create
preferences for artwork (and other options), as well as fix up the
MemberMenu function to filter out empty directories.
# There is a slight change that this will break... If the number of videos returned in total is divisible by MAX_VIDEOS_PER_PAGE with no remainder, there could possibly be no additional page after. This is unlikely though and I'm too lazy to handle it.
# This piece of code is ridiculous. From the best I can gether, the poorly formed HTML on PornHub makes xPath choke at 123 videos. So I rounded it down to 120 and limited the videos to that. This should only affect playlists, but it is a really ridiculous problem
# So... PornHub requires that it's query string parameters are set in the right order... for some reason. This piece of code handles that. It's retarded, but it has to be done
# I stole this function (and everything I did for search basically) from the RedTube Plex Plugin, this file specifically https://github.com/flownex/RedTube.bundle/blob/master/Contents/Code/PCbfSearch.py
0 commit comments