Posts: 121
Joined: Jun 2014
Reputation:
4
This looks great. How easy would it be to setup the following?
- My DB
- Wife's DB
- Joint DB
And then if we watch something together (Joint) it updates to both of our DB's?
I would love to be able to keep track of what I watch individually from my wife since she is home all day using XBMC and this messes up Lazy TV and some Smart Playlists for myself?
Posts: 234
Joined: Nov 2009
Reputation:
4
2014-06-08, 22:19
(This post was last modified: 2014-06-08, 22:21 by Ballistic.)
I bud!
Thanks for your awesome work.
Could you re-post the SQL query without the music database functions?
The latest version doesn't work for me as i don't have any music in my database.
SQL query:
RENAME TABLE `a46`.`song` TO `a46`.`globalsong` ;
MySQL said: Documentation
#1017 - Can't find file: './a46/song.frm' (errno: 2)
edit: Or maybe its something else. db B to D did work. It stopped on db E
Posts: 80
Joined: Jul 2010
Reputation:
6
BUGFIX: Windows scripts have been updated to version 1.2.1 as there was an error that affected Windows account names with spaces. This has now been fixed.
Posts: 80
Joined: Jul 2010
Reputation:
6
2014-06-09, 00:24
(This post was last modified: 2014-06-09, 00:35 by N4TH4N.)
I was thinking running a 6th database with joint capabilities with user 1 and 2.
I was considering a trigger aswel.
It could go 2 ways though.
Database 6 could update playcount1 and playcount2 via a trigger when database 6 watches something.
But what about if user 2 watches something by themselves. Should it not also be displayed with a tick on database 6 so that you know at least one of you have watched it.
This could be handy for multiple users trying to pick a movie together.
I.E me and my housemates could have all 5 databases linked to database 6.
When we go to watch a movie we can hide watched and it will hide everything each of us have seen. So there wont be anymore asking has anyone seen this.
It could be setup in 2 different ways. The couple script that uses database 1 and 2 and the family script that uses database 1, 2, 3, 4 and 5
Im still considering on what the most efficient way to do that is. But when i do implement this feature it will be like that.
Actually come to think about it, it could be done with 2 triggers, one for each way.
Also i would make database 6 the couples database and database 7 the family database.
When installing the clients you can choose to install both, one or neither just by leaving them un-named.
Im starting to think that my simple script could change the way a lot of people use XBMC.
Posts: 80
Joined: Jul 2010
Reputation:
6
2014-06-09, 02:12
(This post was last modified: 2014-06-09, 02:19 by N4TH4N.)
After thinking about this i am keen on making it happen, i have a pretty high workload at the moment, but ill find some spare time at some point over the coming weeks. So i wont make you wait too long.
So for your one are you just interested in the one way trigger to update your individual database when you watch things together.
I'll probably keep the main script as a 2 way, but i will make a 1 way fork for you. Which will most likely consist of the same code as the 2 way just less of it.
It would be great if there was an add-on that you could select which people are in the room and it auto watches on their profile. Or even better, face recognition. But now i'm truly dreaming.
I was just thinking for your setup it should probably display ticked if you have watched it together, or both watched it apart and not tick if one person has not watched it.
Posts: 80
Joined: Jul 2010
Reputation:
6
2014-06-09, 02:25
(This post was last modified: 2014-06-09, 03:02 by N4TH4N.)
Another thought, ill probably create separate ADDONS for the main script. One for Couples (A Type), One for Couple (B Type) and one for Family, but maybe a one way script for family because if you watch something together but one person is not present you want want it to tick on their profile. So i think by limiting it to just display a combination of what everyone has watched in order to help pick movies rather then keep track of them. This would mean that you would have to manually mark as watched on your individual database for family mode.
Because without individual person selection it would be problematic, thats just not currently possible with any method i can think of.
Couples modes should work ok though.