Commit graph

4182 commits

Author SHA1 Message Date
Marcel van der Veldt
b1385b6cc7 Merge branch 'master' of https://github.com/marcelveldt/plugin.video.mb3sync 2015-03-25 18:37:39 +01:00
Marcel van der Veldt
7d49a33b21 refactor to plugin.video.emby 2015-03-25 18:37:21 +01:00
im85288
39a8a5262f added resume point for episodes 2015-03-25 16:01:13 +00:00
im85288
865b07858e Merge branch 'master' of https://github.com/marcelveldt/plugin.video.mb3sync.git 2015-03-25 15:43:35 +00:00
im85288
284983f529 fix crash when seeking to play 2015-03-25 15:43:12 +00:00
Marcel van der Veldt
b0ef58458e fixed error on non existing method 2015-03-25 15:02:37 +01:00
im85288
28862b309c added extra fanart sync 2015-03-25 14:00:08 +00:00
xnappo
03416513cf Change suppress to False unless really needed
This is how it really was before yesterday's commit to re-enable the
optionality
2015-03-25 07:48:29 -05:00
xnappo
d647463bb4 remove old addon delete stuff 2015-03-25 07:40:46 -05:00
Marcel van der Veldt
2cab251517 another fix 2015-03-25 13:31:19 +01:00
Marcel van der Veldt
a513c01707 better way to solve the nullpointer issue 2015-03-25 13:30:08 +01:00
Marcel van der Veldt
e660c36dd3 fixed nullpointer on empty tv shows 2015-03-25 13:26:56 +01:00
Marcel van der Veldt
b1aecb35ba forgot import 2015-03-25 12:55:14 +01:00
Marcel van der Veldt
59f83c4034 better way to clean file names 2015-03-25 12:46:08 +01:00
im85288
f22ca2783c Move theme music sync to update and make it an option 2015-03-25 09:59:23 +00:00
im85288
64f3161518 fix language issue 2015-03-25 09:19:50 +00:00
shaun
a6a30cc54c only set the first run setting if it is not set 2015-03-25 18:47:22 +11:00
xnappo
0f35f73f76 Adding episode delete (for real this time!) 2015-03-24 18:52:23 -05:00
im85288
b97dadbd9c oops forgot an import 2015-03-24 22:54:33 +00:00
im85288
851e65374b added copying theme music - plus workaround for reported boxset issues 2015-03-24 22:39:19 +00:00
Marcel van der Veldt
1ca1c55345 set playedcount and lastplayeddate after resumepoint db change 2015-03-24 21:29:57 +01:00
Marcel van der Veldt
2d531474d7 fixed: do not write resumepoint to NFO if its value is 0 because this will set the lastplayed field to the import date 2015-03-24 21:19:50 +01:00
Marcel van der Veldt
95a3e76671 added lastplayed field to sync 2015-03-24 21:03:07 +01:00
im85288
7a905d4ec2 change art_types to a set 2015-03-24 18:58:13 +00:00
Marcel van der Veldt
7e33194e84 Merge branch 'master' of https://github.com/marcelveldt/plugin.video.mb3sync 2015-03-24 19:42:04 +01:00
Marcel van der Veldt
0eec3ecb1a fixed: resume now uses native kodi dialog 2015-03-24 19:41:46 +01:00
im85288
ccf77f3be2 add support for box sets 2015-03-24 16:47:26 +00:00
xnappo
c9fb82cf3c Back out delete
Need to add check if item is already deleted on Emby server
2015-03-23 22:54:11 -05:00
xnappo
c90ae07a53 Episode delete test 2015-03-23 19:35:00 -05:00
faush01
0c92e86b39 add some more notification options 2015-03-24 10:02:46 +11:00
im85288
cf03ca9f4f Don't use hardcoded database version number 2015-03-23 11:30:03 +00:00
shaun
944b04b89a we dont support DisplayContent in this addon 2015-03-23 19:44:16 +11:00
faush01
f067bf573c fix a type in position setting in the stored data for playing items 2015-03-23 16:24:52 +11:00
faush01
9e5385c1c6 add WebSocket for events and remote control
For some reason playback stop is not being reported
2015-03-23 15:54:16 +11:00
faush01
59cdfcd922 add Notification as an UI indication option for syns actions 2015-03-23 14:54:07 +11:00
xnappo
263500da34 Don't include collections in tags 2015-03-22 16:48:17 -05:00
xnappo
a3b42a0447 Use collections instead of views for tags 2015-03-22 16:22:03 -05:00
im85288
6566e21fe1 only add real local trailers 2015-03-22 14:51:03 +00:00
im85288
4606ad5e79 only add trailers that are actually local 2015-03-22 14:21:30 +00:00
angelblue05
3b78b8e765 Fixed failed playback detection
Multiple instances of xbmc.Player() were called in onPlayBackStarted() causing a failed detection of the file currently playing.
2015-03-22 08:02:38 -05:00
Marcel van der Veldt
7cbdc48cc0 Merge branch 'master' of https://github.com/marcelveldt/plugin.video.mb3sync 2015-03-22 13:22:34 +01:00
Marcel van der Veldt
1ed1974673 fixed error in player.py 2015-03-22 13:22:09 +01:00
angelblue05
268344a8da Added https option to getServer
Since in most place I've noticed the http field is present, I've set to return the prefix by default. We will need to add a boolean option within the configs named https.
2015-03-22 05:58:02 -05:00
angelblue05
4f9673d6e8 websocket library
In preparation of WebSocketClient.py
2015-03-22 05:16:49 -05:00
angelblue05
5952b60b32 Fixed post capabilities
Client was not showing as a player in the web client.
2015-03-22 03:09:25 -05:00
angelblue05
1a472a43cd Fixed post capabilities
Client was not showing as a player in the web client.
2015-03-22 03:07:06 -05:00
Marcel van der Veldt
e10801cb48 added support for strm files played through the addon 2015-03-22 04:19:26 +01:00
Marcel van der Veldt
fedb6b4893 another encode issue 2015-03-21 20:26:59 +01:00
Marcel van der Veldt
a1ed4ef0f6 unicode issue in tvshow nfo 2015-03-21 16:05:47 +01:00
Marcel van der Veldt
c6e5bc28ac added musicvideos support 2015-03-21 14:31:30 +01:00
Marcel van der Veldt
62dda17680 finished episode deletions 2015-03-21 12:33:59 +01:00
Marcel van der Veldt
9287706ced fixed tv show deletions 2015-03-21 11:32:21 +01:00
im85288
78bc187c1f support systems using python version less than 2.7 (such as Mac) 2015-03-21 09:03:43 +00:00
shaun
7c7b4b375f small changes to progress dialog and working of restart message 2015-03-21 14:15:34 +11:00
shaun
960cec8163 Batch up all the params needed to update a movie and send them all at once 2015-03-21 10:33:04 +11:00
xnappo
bb3f52ea51 Error handling for delete, but still not working :( 2015-03-20 15:42:12 -05:00
xnappo
4c5debaa1e import inspect 2015-03-20 15:00:17 -05:00
Marcel van der Veldt
c0a26c2596 still error in remove-episode 2015-03-20 20:29:50 +01:00
Marcel van der Veldt
09e62d570c support for episode deletions 2015-03-20 20:26:37 +01:00
Marcel van der Veldt
63bd250c4b fixed season artwork 2015-03-20 16:58:46 +01:00
Marcel van der Veldt
acbf9ee258 fixes for season artwork 2015-03-20 16:16:39 +01:00
Marcel van der Veldt
a68c2cc796 some more optimizations - episodes dont need their artwork set 2015-03-20 14:37:34 +01:00
Marcel van der Veldt
a20ccc1cc8 fix: added maps to getKoditvshows method 2015-03-20 13:27:02 +01:00
Marcel van der Veldt
58ad5c1fe3 optimize getArt method --> small fixes and removed extra logging 2015-03-20 12:53:02 +01:00
Marcel van der Veldt
7f7127b3bc optimization in setartwork --> now sets all artwork at once 2015-03-20 12:39:26 +01:00
im85288
b2bf2c55c4 small fix for progress message 2015-03-20 11:10:08 +00:00
Marcel van der Veldt
494bf67198 fixed typo in tv show sync 2015-03-20 12:03:35 +01:00
Marcel van der Veldt
6eba8db57a improvement to tvshows sync: also process updates at tv show level at first sync 2015-03-20 11:08:22 +01:00
faush01
cbfc40f430 On first sync show a regular Progress Dialog 2015-03-20 19:15:06 +11:00
faush01
5dd145a8e8 use a map for movie to make to lookup easier and faster 2015-03-20 14:04:54 +11:00
faush01
d1aabaf803 remove log and __init__ functions from API() 2015-03-20 11:58:58 +11:00
Marcel van der Veldt
83213e745e fixed typo 2015-03-20 01:35:00 +01:00
Marcel van der Veldt
323deb2534 Merge branch 'master' of https://github.com/marcelveldt/plugin.video.mb3sync 2015-03-20 01:28:12 +01:00
Marcel van der Veldt
25d83591cd added season 0 poster as fallback for tv shows in nfo 2015-03-20 01:27:55 +01:00
faush01
7a9790884a Merge remote-tracking branch 'origin/master'
Conflicts:
	resources/lib/WriteKodiDB.py
2015-03-20 11:24:19 +11:00
faush01
21a29b3962 dont try to do any DB access if it is not needed in Update Actors 2015-03-20 11:21:43 +11:00
Marcel van der Veldt
96833b5ef3 fixed small issue in NFO --> writer is named credits in the NFO 2015-03-20 01:16:46 +01:00
Marcel van der Veldt
6e1727dc78 Merge branch 'master' of https://github.com/marcelveldt/plugin.video.mb3sync 2015-03-20 01:09:21 +01:00
Marcel van der Veldt
845f0cc809 small optimalizations and fix for key error at season artwork 2015-03-20 01:09:04 +01:00
faush01
c38ecfa462 acumulate change values with |= and dont set art if it is "" 2015-03-20 10:49:13 +11:00
Marcel van der Veldt
5b65e1cfda moved some more logging to info or debug level 2015-03-20 00:34:56 +01:00
Marcel van der Veldt
8b29222446 fixed artwork on Playback
fixed playcount reporting on Movies

improved playcount reporting after playback (refresh the listing)
2015-03-20 00:24:29 +01:00
Marcel van der Veldt
3be9f9e50e Merge branch 'master' of https://github.com/marcelveldt/plugin.video.mb3sync 2015-03-19 22:50:49 +01:00
Marcel van der Veldt
e859108697 changed some logging 2015-03-19 22:50:33 +01:00
im85288
4a1bd80093 added season posters 2015-03-19 21:31:06 +00:00
Marcel van der Veldt
34ea46b9cb fixed support for dateadded by setting the modfication date on the strm files 2015-03-19 21:55:30 +01:00
im85288
310b647727 optimise getting kodi movie and kodi episode 2015-03-19 18:39:38 +00:00
im85288
371672d56f remove xbmc.log statement 2015-03-19 17:44:53 +00:00
im85288
27b21f214e added individual playcount update 2015-03-19 17:40:29 +00:00
shaun
40b3231156 make sure we are syncing all items for the playcount sync 2015-03-20 00:28:55 +11:00
shaun
ad1d1d80cc remove some of the for loops searches, use a map for lookups
Do a full sync on all items for playcount
2015-03-20 00:18:28 +11:00
Marcel van der Veldt
a0099a69db fixed the restart message
not start sync before settings are changed in the kodi xml files
2015-03-19 13:43:02 +01:00
Marcel van der Veldt
ea8c810a05 fixed small error in full sync 2015-03-19 11:20:58 +01:00
Marcel van der Veldt
fe35d84e1e speed improvement
moved all sleeps to the kodi api calls only
2015-03-19 11:13:49 +01:00
Marcel van der Veldt
593d969669 speed boost playcount sync 2015-03-19 10:52:21 +01:00
Marcel van der Veldt
5ec6afaf99 optimize playcount sync for Movies
replaced call per-item by 1 single call to Kodi api
2015-03-19 10:06:05 +01:00
Marcel van der Veldt
43b8cd781d manually merged changes 2015-03-19 09:47:05 +01:00
Marcel van der Veldt
b0c795bdf4 fixed incremental sync for tvshows 2015-03-19 09:44:25 +01:00
faush01
00e46a76cb split the tv episide add into two stages add/update to allow importing in the middle 2015-03-19 19:42:25 +11:00
faush01
a2be3f50d4 fix url building 2015-03-19 15:38:15 +11:00
faush01
20691716b7 a bunch of progress dialog fixes 2015-03-19 15:38:00 +11:00
faush01
7d37fe590d move the log to inside the message function call to reduce log noise 2015-03-19 15:37:20 +11:00
Marcel van der Veldt
53fb4a9207 small changes 2015-03-18 22:38:02 +01:00
xnappo
62b3f8da2d Different studio fix
PlayUtils was erroring on empty list - this is a better fix than the
last i think
2015-03-18 15:49:49 -05:00
Marcel van der Veldt
200040dd62 added loglevel from settings and exception to logmessages 2015-03-18 21:34:52 +01:00
xnappo
b5214ad8ba Fix for empty studios 2015-03-18 15:03:20 -05:00
Marcel van der Veldt
6729df6508 small fixes 2015-03-18 18:49:20 +01:00
Marcel van der Veldt
deb0fa57c1 incremental episodes sync and new settings 2015-03-18 18:43:57 +01:00
Marcel van der Veldt
380b934316 first attempt to get incremental sync for episodes 2015-03-18 18:00:38 +01:00
Marcel van der Veldt
89932186d9 merge? 2015-03-18 16:52:11 +01:00
Marcel van der Veldt
b3a178ab62 Merge branch 'master' of https://github.com/marcelveldt/plugin.video.mb3sync
Conflicts:
	resources/lib/LibrarySync.py
2015-03-18 16:51:11 +01:00
Marcel van der Veldt
dc13c6996d added sync settings
improved performance by getting all kodi movies at once instead of 1 by 1

movies section = finished, TV section work in progress
2015-03-18 16:47:55 +01:00
xnappo
5127a770b5 throttle the progress bar 2015-03-18 10:08:26 -05:00
shaun
f77cef5aca add some more name cleaning char replaces 2015-03-18 19:02:28 +11:00
faush01
1b4a99bd78 replace / with & in studio strings 2015-03-18 16:05:21 +11:00
faush01
c6917f5bd3 allow play count updates to be pushed to the server even if sync is running 2015-03-18 14:18:30 +11:00
faush01
7bd7c10a0f add episode watched push to MBS from Kodi 2015-03-18 13:45:15 +11:00
xnappo
bc8037d686 Refactor fix 2015-03-17 15:18:27 -05:00
xnappo
37ca11bf8b Don't collapse boxsets 2015-03-17 14:47:31 -05:00
xnappo
7936a9ba5a Refactor 4/4 2015-03-17 14:02:42 -05:00
xnappo
375aa8f194 Refactor 3/4 2015-03-17 13:41:26 -05:00
xnappo
2a09fe6117 Refactor 2/4 2015-03-17 13:18:17 -05:00
xnappo
ed784bfcd9 Refactor 1/4 2015-03-17 12:51:45 -05:00
xnappo
ed77944543 Throttle play status sync 2015-03-17 12:25:52 -05:00
xnappo
f1e01fe0a9 Get real full nodes for standard collections 2015-03-17 10:47:24 -05:00
Marcel van der Veldt
112f636ab2 Merge branch 'master' of https://github.com/marcelveldt/plugin.video.mb3sync
Conflicts:
	resources/lib/LibrarySync.py
2015-03-17 10:44:02 +01:00
Marcel van der Veldt
61c98a95d0 fixed firstaired on episodes (now really)
only log on changes to keep log readable
2015-03-17 10:41:52 +01:00
faush01
5217ed815d dont set runtime if zero and add current to log for updatePropertyArray call 2015-03-17 13:33:20 +11:00
Marcel van der Veldt
acfc9ee258 last fix for firstaired at episodelavel 2015-03-17 01:12:50 +01:00
Marcel van der Veldt
b48ed373a8 one more fix: tvshows's year field is named premiered 2015-03-17 01:00:28 +01:00
Marcel van der Veldt
c4c32521d0 small fixes for episodes 2015-03-17 00:54:30 +01:00
Marcel van der Veldt
976a51057d some more work on episodes part 2015-03-17 00:36:42 +01:00
Marcel van der Veldt
5e8f63831c more unicode fixes
fixes for wrong dif detection
added logging to see if item gets updates
libraries can be enabled/disabled
2015-03-17 00:04:29 +01:00
Marcel van der Veldt
a1a074b66f advancedsettings.xml can get the watchedstates imported 2015-03-16 23:37:31 +01:00
Marcel van der Veldt
1f078194bd and one more... 2015-03-16 22:46:16 +01:00
Marcel van der Veldt
8fd237a435 small error in logmsg 2015-03-16 22:42:53 +01:00
Marcel van der Veldt
150f276005 Merge branch 'master' of https://github.com/marcelveldt/plugin.video.mb3sync
Conflicts:
	resources/lib/LibrarySync.py
2015-03-16 22:38:48 +01:00
Marcel van der Veldt
75bf4de471 added some logging to the set methods to figure out why its updating 2015-03-16 22:36:13 +01:00
Marcel van der Veldt
4810cfae52 extended NFO creation with more info 2015-03-16 22:31:32 +01:00
xnappo
9f941ba964 Wrap executeJSON for debug 2015-03-16 12:51:49 -05:00
xnappo
39961041b8 Update tags 2015-03-16 12:30:02 -05:00
xnappo
082ff2f9bc Initial attempt at tags 2015-03-16 09:29:31 -05:00
shaun
67bd818aad Clean file name for episode files 2015-03-16 20:15:26 +11:00
shaun
47e3d6cb19 add some sleeps :-( 2015-03-16 18:43:20 +11:00
faush01
9c98f713e7 dont do a lib scan or clean until the sync is full done 2015-03-16 16:27:23 +11:00
faush01
46f2a3ffdb stop sync if exiting or playback started 2015-03-16 14:10:41 +11:00
faush01
f587905d91 add xbmcgui.DialogProgressBG() to display current sync progress 2015-03-16 13:32:59 +11:00
xnappo
f0fb4e3c96 Use tvshow.poster 2015-03-15 20:56:23 -05:00
angelblue05
6d8f75b492 Minor modification 2015-03-15 20:31:21 -05:00
angelblue05
e4ad9bb3c2 Added verification from WINDOW
This also include preparations for http/https support.
2015-03-15 20:24:19 -05:00
xnappo
972d48688c Don't include virtual/phantom episodes 2015-03-15 14:48:09 -05:00
Marcel van der Veldt
8fd991d93c small fixes 2015-03-15 18:38:35 +01:00
Marcel van der Veldt
0b6b630e06 merged in getcollections 2015-03-15 18:14:23 +01:00
Marcel van der Veldt
01b7e40fe5 tvshow section working including episodes 2015-03-15 18:04:01 +01:00
xnappo
a579eebe7e Add getCollections method 2015-03-15 09:10:26 -05:00
shaun
1971eb8655 create a empty sources.xml to work with if one does not exist 2015-03-15 15:18:34 +11:00
Marcel van der Veldt
827d0a0484 Merge branch 'master' of https://github.com/marcelveldt/plugin.video.mb3sync 2015-03-15 04:29:12 +01:00
Marcel van der Veldt
a3fb4eb748 tvshow updates now working 2015-03-15 04:28:37 +01:00
angelblue05
f5f1589aa6 User added to return userdata
Return userdata from settings.xml. The methods found here should be used to build other methods. This will keep the data more centralized.
2015-03-14 21:43:06 -05:00
Marcel van der Veldt
42220765dd work on tv shows section 2015-03-15 02:18:29 +01:00
im85288
3439a599e9 start of getting tv shows - needs further work 2015-03-14 22:43:36 +00:00
shaun
f7aa1d4310 move get setting and creation of Download Utils to where they are used
to allow them to pick up the values at the time they are needed
2015-03-15 09:33:16 +11:00
shaun
4f6e7c2233 add some error checking 2015-03-15 08:25:08 +11:00
im85288
83c438f8ff use os.sep for path seperator 2015-03-14 20:48:09 +00:00
Marcel van der Veldt
37f4f6b707 fixed one more issue in utils..
file exists in python needs a trailing slash behind directory names
2015-03-14 19:55:04 +01:00
Marcel van der Veldt
3c8db3fe94 fixed error in sources detection 2015-03-14 19:37:52 +01:00
xnappo
2f53b9b026 Fix playback 2015-03-14 13:17:16 -05:00
xnappo
0bf230d449 Merge again? 2015-03-14 13:10:27 -05:00
Marcel van der Veldt
540b6786c4 merge 2015-03-14 18:29:58 +01:00
Marcel van der Veldt
5796185ce5 fixed all remaning properties
added actors
2015-03-14 18:29:00 +01:00
Marcel van der Veldt
e2d6bd6c43 fixed all properties for movieobjects
added actors to database
fixed the library detection to more failsafe
2015-03-14 18:23:45 +01:00
xnappo
caa86fe5c8 Move getArt to API 2015-03-14 11:06:37 -05:00
Marcel van der Veldt
7b45de29e1 added genres to the properties 2015-03-14 14:32:50 +01:00
Marcel van der Veldt
082747fafc more universal way of setting the properties on items 2015-03-14 13:08:05 +01:00
Marcel van der Veldt
f1e393d0f2 fixed the sources generation to more failsafe 2015-03-14 12:28:11 +01:00
Marcel van der Veldt
4214b3d289 added some more properties to update/write to Kodi 2015-03-14 12:26:25 +01:00
faush01
9f0d02c03a if no value set return a default of 10M 2015-03-14 14:09:36 +11:00
faush01
0eacb876c7 use the latest source for download utils 2015-03-14 13:37:03 +11:00
faush01
5e580e6e2c use the new get machine id code to fix a race condition bug 2015-03-14 13:04:18 +11:00
Marcel van der Veldt
50d3129010 fixed watched progress indicators
fixed artwork assignments
2015-03-14 01:46:54 +01:00
Marcel van der Veldt
85550ce1ad auto add new library sources to kodi database 2015-03-13 23:39:35 +01:00
Marcel van der Veldt
860bdfbbd8 initial commit - first version 2015-03-13 22:24:59 +01:00