home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
My Anime plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="bert_r" data-source="post: 420521" data-attributes="member: 90426"><p>Indeed, originally I did the same: After hashing the file I did MYLISTADD to add it to mylist, if this returned that the file is already on mylist (result 310), I used MYLIST to get the watched status.</p><p></p><p>But upon trying, I noticed that when MYLISTADD returns 310, the current status is also returned (the exact same result as the MYLIST command). This is both easier and faster (only one command is needed).</p><p>In the v1 code (AniDBCommands.cs, line 258):</p><p>[CODE]case "310":</p><p> //file already exists: read 'watched' status</p><p> string[] arrResult = socketResponse.Split('\n');</p><p> if (arrResult.Length >= 2)</p><p> {</p><p> string[] arrStatus = arrResult[1].Split('|');</p><p> int viewdate = int.Parse(arrStatus[7]);</p><p> AnimePluginView.animeDB.UpdateAniDBFileInfoWatchedStatus(FileData.FileName, (viewdate > 0), false);</p><p> }</p><p> return enHelperActivityType.FileAlreadyExists;[/CODE]</p></blockquote><p></p>
[QUOTE="bert_r, post: 420521, member: 90426"] Indeed, originally I did the same: After hashing the file I did MYLISTADD to add it to mylist, if this returned that the file is already on mylist (result 310), I used MYLIST to get the watched status. But upon trying, I noticed that when MYLISTADD returns 310, the current status is also returned (the exact same result as the MYLIST command). This is both easier and faster (only one command is needed). In the v1 code (AniDBCommands.cs, line 258): [CODE]case "310": //file already exists: read 'watched' status string[] arrResult = socketResponse.Split('\n'); if (arrResult.Length >= 2) { string[] arrStatus = arrResult[1].Split('|'); int viewdate = int.Parse(arrStatus[7]); AnimePluginView.animeDB.UpdateAniDBFileInfoWatchedStatus(FileData.FileName, (viewdate > 0), false); } return enHelperActivityType.FileAlreadyExists;[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
My Anime plugin
Contact us
RSS
Top
Bottom