Hi, All
nb: the only way I am affiliated with the Laracasts site (below) is being an active subscriber.
I am wanting to create a new Agent for the downloaded series I have from laracasts.com. These PHP video tutorials are in series format. For instance, take the free series Laravel 5 fundamentals, it has many episodes and this is just one of many series’.
I have been researching this on and off for days but I’m only able to find snippets of information.
I managed to download a .pdf file on my phone but I can’t recall where I got it from (shared on my Gdrive).
The format of this I can believe as it is similar to code I have on my computer.
However, I am aware of recent changes to Plex (server) and I am not sure whether it affects this.
##Github Account full of Agents
I have found the account github.com/plexinc-agents and I have forked the LocalMedia.bundle Agent as I am hoping this Agent will give me my best chance of successfully reaching my goal.
##What is my goal?
Well, I want to be able to:
- Download the episodes using the laracastsDownloader and/or further down the line create a similar tool that will incorporate the below steps.
- Scrape the metadata I need from the page eg Episode 1
{
"Series": "Laravel 5 Fundamentals",
"EpisodeNumber": "01",
"Title": "Meet Composer",
"Title Sort": "Laravel 5 Fundamentals - 01"
}
- I want to then either convert this into data that the Plex server can work with either by writing the correct metadata to the media files using the command line in Linux (but then that puts a scuppa on anybody else wanting to use the facility on Windows etc) or use a custom Agent to provide my “Laracasts” Library with the proper data. I have also seen numerous threads on the forum where people have unsuccessfully tried to force the Plex server and more specifically local files to use the information they want them to have via meta tags and the numerous problems they have more than not with failed results.
I have visited many pages on this forum and quite a bit of the time when I try to research something I end up with docs from 201x-2015 and I worry that these will just lead me down a dead end coding wise as others have referred to them on the forum as no longer working properly.
##Questions (in no particular order I’m afraid)
- Am I on the right track here?
- Am I right in assuming the if I choose to go the Agent route the correct python version is 2.x and not 3.x? My knowledge and experience of Python is rusty but I will be able to get by if needed
- Is the document I linked to still valid?
- Are there any more documents that I would find useful?
- Do you have any more advice?
###More questions added 2017-10-05 22:19 GMT
- Where do I place the new Agent if I go that route?
- Is it possible to create a new type of media with a new Agent ( so instead of forcing the Laracasts metadata into the default (TV Shows) fields) - for example instead of opening the edit box and seeing a “Rating” field would it be possible to have a [difficulty] “Level” field shown instead. I have seen a few Agents in the aforementioned Github account where they add fields to where the ‘Music Video’ filed is within the default edit screen"?
Thanks in advance and I hope you are able to help.
John