mutu310 70 Posted January 11, 2017 Share Posted January 11, 2017 Hi, I'm building a server plugin and one of the tasks will need to fetch IMDB ratings. The development policy clearly indicate that scraping imdb.com is not allowed, however is it OK for a developer to use a third-party service such as omdbapi.com for retrieving such data? 1 Link to comment Share on other sites More sharing options...
Luke 37185 Posted January 11, 2017 Share Posted January 11, 2017 We already use omdb so your plugin is probably not necessary. But welcome ! Link to comment Share on other sites More sharing options...
mutu310 70 Posted January 11, 2017 Author Share Posted January 11, 2017 OK thanks. Actually I (briefly) looked around on the Internet and I didn't find a single service that does the function that my plugin will be doing. I will release the first version soon. On another subject, what is the best way to store a string/date that is used during processing and will need to persist even after restarts? Link to comment Share on other sites More sharing options...
Luke 37185 Posted January 11, 2017 Share Posted January 11, 2017 @@mutu310 is this global data or attached to each library item. what data are you pulling from omdb? because chances are we are already doing it. thanks ! Link to comment Share on other sites More sharing options...
mutu310 70 Posted January 11, 2017 Author Share Posted January 11, 2017 @@Luke, I am 100% sure you are not doing this. I'm not querying OMDB with items in the library, but rather on items that one might want to have in the library I'm having a minor issue before I can think about releasing the alpha version of the product. I am reading an RSS and I want to only pick up the new items each time. What I did was created an extra configuration variable to hold the DateTime of the most recent entry in the RSS so that when it refreshes it only processes the new items. This is working well, however when I restart Emby for some reason it will read ALL items rather than the new ones the first time. If I re-run the schedule it will process 0 items in subsequent times. Any idea what could be causing the issue please? In the PluginConfiguration constructor I set the default value as LastPublishDate = DateTime.MinValue; Link to comment Share on other sites More sharing options...
Luke 37185 Posted January 11, 2017 Share Posted January 11, 2017 Well you have to make sure to call the save configuration method. Now I understand what you're doing. The challenge though is display in Emby apps. Link to comment Share on other sites More sharing options...
mutu310 70 Posted January 11, 2017 Author Share Posted January 11, 2017 @@Luke that sounds great, so I just run a Plugin.Instance.SaveConfiguration(); every time I update the config programmatically, correct? Link to comment Share on other sites More sharing options...
Luke 37185 Posted January 11, 2017 Share Posted January 11, 2017 yup. where is this going to get displayed? i would imagine they might work with regular movie suggestions, but that's probably it. Link to comment Share on other sites More sharing options...
mutu310 70 Posted January 11, 2017 Author Share Posted January 11, 2017 For now I am using Notifications, but maybe I will manage to expand it to look a bit like a library one day, a bit like the TuneIn plugin works. It would be giving movie suggestions. Link to comment Share on other sites More sharing options...
mutu310 70 Posted January 11, 2017 Author Share Posted January 11, 2017 (edited) OK, the first alpha version is ready. Tested on Windows 10 and Synology NAS. May I get a developer ID please? Edited January 11, 2017 by mutu310 Link to comment Share on other sites More sharing options...
ebr 14949 Posted January 11, 2017 Share Posted January 11, 2017 Please post a beta version in the forum to pick up support and work out any issues before we put it in the catalog. Thanks. Link to comment Share on other sites More sharing options...
mutu310 70 Posted January 12, 2017 Author Share Posted January 12, 2017 (edited) As requested. https://emby.media/community/index.php?/topic/43658-blurn-%E2%80%94-blu-ray-release-notifications/ Edited January 12, 2017 by mutu310 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now