I am currently trying to modify the channel 'reddit videos' to create a custom list of subreddits that I enjoy, but plex keeps erasing my changes every few hours. I have tried renaming the bundle as well as modifying the init.py file to try and make plex recognise it as a different channel, but every time after a few hours the changes I made are deleted?
Is there a setting I can change to stop plex keeping my channels up to date?
What I usually do when working on a channel is this: Move the channel bundle from the Plug-ins directory to some place convenient (desktop, etc.) then create a sym-link from the new location back into the Plug-ins directory. That will allow PMS to properly load the code for execution but not replace it when running the auto-update routine.
Thanks for your response Mikedm139, I have tried your method by moving reddit videos to the desktop and creating an alias of it, then moving the alias into the '~/application support/plex media server/plug ins' folder but plex didnt recognize the channel? When I refreshed the library and entered plex again, the channel had disappeared? Am I missing something?
Strictly speaking, aliases are not the same as symlinks. I’m sure a quick google search would turn up lots of more in depth tutorials but, I use the OSX Terminal command:
This has been frustrating me constantly when I'm trying to modify an existing plugin. Thanks for the tip on creating a sym link, that said shouldn't there be a developer flag to stop the media server from trying to be "helpful".
Technically, there is a developer flag that an be added to the channel’s plist file to disable auto-update.
PlexPluginDevMode
1
However, I’ve heard reports of it being ignored on Windows machines. I personally don’t use it because I find it annoying to have to remove the flag before uploading changes to GitHub.
symlinks are definitely safer and easier to manage than adding that option to the plist, at least in my experience -- especially if it's something that you want to release to others at some point, because then you have to keep juggling turning on and off that devmode option. With symlinks it "just works" (and by works I mean your changes don't get stomped!)
I have always just created a channel I call test that I paste code in to play with and tweak things, so yes you can set it up as a new channel. But this does seem like a better way to tweak channels without a lot of hassle, especially if you want to just try out a tweak for an existing channel structure . Also it could be of benefit based on how you have your Github account set up and you manage updates to it. So it is a method I am going to try. As Mikedm139 said above, a quick Google search of symlinks and your operating system brings up many tutorials.
Here's a question about this, does it need to be a hard symbolic link for Plex to pick up the symlink?
This is not an area I know a lot about, but I think there is not something like a "hard symbolic link", there's just a "hard link" and a "symbolic link" (or "soft link"). I'm pretty sure PMS checks for symlinks. Check out this nice tool to make creating symlinks on OSX a lot easier: https://www.macupdate.com/app/mac/10433/symboliclinker
Your right it is soft symbolic or hard link. I was getting confused by the options of mklink from the tutorials I looked up, since they mention all three options. I have Win 7, but did find a couple automated tools for Windows as well.