mwheelerjr / mptvseries

Automatically exported from code.google.com/p/mptvseries
0 stars 0 forks source link

MyShows.ru support #578

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This site is russian analog for Trakt.
Planned features:
-mark series watched after playing in MP/
-toggle wathced status.
I made a little app which can login on myshowsand mark episodes as watched. 
http://dl.dropbox.com/u/7658963/myshows.exe
Results you can see here http://myshows.ru/test_login
I have to search series by name and year because myshows api has only tvrage id 
but not tvdb id.
So it accepts series name, year, season and episode numbers. I suppose i need 
from DB these fields:
DBOnlineSeries.cPrettyName
DBSeries.Year
DBOnlineEpisode.cSeasonIndex
DBOnlineEpisode.EpisodeIndex
I know that mp-tvseries transmits some info to other apps. I need help to 
recieve such messages to make myshows plugin.
Thenks.

Original issue reported on code.google.com by edale...@gmail.com on 9 May 2011 at 9:53

GoogleCodeExporter commented 9 years ago
Yes, these are the fields you need:

DBOnlineSeries.cPrettyName
DBSeries.Year
DBOnlineEpisode.cSeasonIndex
DBOnlineEpisode.EpisodeIndex

You can get this off a DBEpisode or DBOnlineSeries object.

There are plenty of examples on how you can achieve all this in the 
TraktPlugin. In the constructor there is a bunch of events you can hook into so 
you can post to your site once a episode has finished. There is also toggle 
watched events, all these have examples in the trakt code.

Original comment by damien.haynes@gmail.com on 9 May 2011 at 11:30

GoogleCodeExporter commented 9 years ago
Hi.
I made a first version of MyShows Plugin.Sources and dll are in 
attachements.Can you look at the code, please? I'm new in programming so i made 
some mistakes.
I have to use DBOnlineSeries.OriginalName as series name but sometimes it is 
empty. :(
i found out that it is filled in gui later and sometimes without success. Maybe 
i shoud add a condition "when empty - make request after timeout 30 sec"? 
I will appreciate your help.
Thanks.

Original comment by edale...@gmail.com on 21 May 2011 at 4:27

Attachments:

GoogleCodeExporter commented 9 years ago
cool, been a bit lately do not much time to review it. But nice to see more 
sites like these popping up.

I dont think you need to worry about DBOnlineSeries.OriginalName failing, next 
time you try it will try again because it will always try to do a lookup if its 
empty and the language is not English.

Original comment by damien.haynes@gmail.com on 23 May 2011 at 2:07

GoogleCodeExporter commented 9 years ago
I'll wait when you have time to look deeply in my code cause some  bugs need to 
be resolved i.e it is shown in "other plugins" section not in "process" cause 
my implementation of IPlugin is wrong etc.
For me and other future users of this scrobbler language will be russian.
And it is strange but DBOnlineSeries.OriginalName is filled well right after 
mp's startup in my installation but failed in my friend's MP. 
For now I decide to use DBOnlineSeries.PrettyName firstly and then OriginalName 
if PrettyName is failed.

Original comment by edale...@gmail.com on 23 May 2011 at 6:43

GoogleCodeExporter commented 9 years ago
It just depends on what tries to read OriginalName...as far as I know its 
really only accessed externally e.g. Trakt Sync gets originalName, likewise for 
subtitles and your plugin.

I will have a look at your IPlugin implementation when I get a chance.

Original comment by damien.haynes@gmail.com on 23 May 2011 at 11:53

GoogleCodeExporter commented 9 years ago
Damien, i think first version is done.
I fixed IPugin bug and some other stuff.
It supports "watched" and "toggle watched" events for now.
Maybe in future versions i'll add syncing, rating episodes and maybe gui like 
trakt :)

Original comment by edale...@gmail.com on 25 Jun 2011 at 7:50

Attachments:

GoogleCodeExporter commented 9 years ago
nice one edalax!

Original comment by damien.haynes@gmail.com on 26 Jun 2011 at 12:03

GoogleCodeExporter commented 9 years ago
Guess we can close this now as this can all be done externally to tvseries like 
trakt plugin.

Original comment by damien.haynes@gmail.com on 6 Nov 2011 at 1:54