MediaElch - MediaManager for Mac/Linux/Win (with music library scraping) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116) +--- Thread: MediaElch - MediaManager for Mac/Linux/Win (with music library scraping) (/showthread.php?tid=136333) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
|
RE: MediaElch - MediaManager for Mac/Linux/Win - GreenEyez - 2012-09-08 Hey Komet, when is the new version expected? I see you closed the milestone for 9.5 on github, so are we to expect a new version soon ? RE: MediaElch - MediaManager for Mac/Linux/Win - Komet - 2012-09-08 (2012-09-08, 07:45)ZaPHoN Wrote: This can't be installed in ubuntu 11.10 OneiricMaybe I'll have a look into this but I'm testing the deb's only with the latest stable Ubuntu release. All others are free to compile MediaElch on their own (2012-09-08, 14:28)GreenEyez Wrote: Hey Komet, when is the new version expected? I see you closed the milestone for 9.5 on github, so are we to expect a new version soon ?I decided to skip the release of version 0.9.5 and go straight forward to 0.9.6 which will include the debug mode. So please stand by a little bit longer RE: MediaElch - MediaManager for Mac/Linux/Win - zestef - 2012-09-09 Hi Komet, Very very good job on mediaelch (donated a little ), hope you will continue to improve it. I'm facing a bug that i do not understand, here we go : Configuration : Mac OS X 10.7.3 MedialElch 0.9.4 XBMC 11 MySQL Server Movies Path & MediaCenter Path correctly configured (smb://), separate folder checked. XMBC MySQL correctly configured Thumbnails Path correctly configured Metadata already stored in MySQL are nearly complete (XBMC Database contains nearly all metadata for my files). My goal is to use MediaElch to add/modify metadata to my movies. When MediaElch scan my folder and associates movies folder with xbmc mysql metadata, I've got different behavior : Case 1 - Some movies have their metadata and their poster/fanart displayed by MediaElch (The good way ) Case 2 - Some movies have not their metadata and their poster/fanart displayed by MediaElch (again the database is complete for these movies), after a first analysis it seems to be related with m2ts files or with movies with special character in their title like "L'Âge de glace 3". Case 3 - Some movies does not have metadata but MediaElch display their respective poster/fanart found in the thumbnail cache (I though that the xbmc thumbnail cache was related to the informations stored in the xbmc database), that's this behavior that i do not understand . As usual screenshots are a better way to explain : Case 1 : Case 2 : Case 3 : Hope you can help, regards. PS : As you can see english is not my mother tongue, so if you don't understand, i will understand... Zestef. RE: MediaElch - MediaManager for Mac/Linux/Win - Komet - 2012-09-09 (2012-09-09, 09:58)zestef Wrote: Hi Komet,Thanks for donating! Your errors seems to be caused by special characters in the movie filename. I'll look into this when the next release is done. The way XBMC stores thumbnails is the following: It creates a hash of the full path to the movie, for example "smb://10.0.1.3/movies/movie/filename.mkv" becomes "c30d7440". Then the thumbnail is stored in ".xbmc/userdata/Thumbnails/Video/c/c30d7440.tbn". What's going wrong in case 2 and 3 is there is some bug in MediaElchs XBMC sql interface, maybe the special characters don't get escaped or something like that. So MediaElch couldn't retrieve the metadata from the database. In case 2 my implementation of the hash calculation seems also to be broken when it comes to filenames with special characters. So I may be constructing a wrong hash. In case 3 the hash calculation is ok (that's because you see the thumbnails) but the sql query is wrong. As said earlier, the next release comes with a debug log. With this information it would be easier to track bugs like this down. RE: MediaElch - MediaManager for Mac/Linux/Win - zestef - 2012-09-09 Hi Daniel, I analyse a little bit more my results and it's seems that the SQL query is wrong (case 2 & 3) when no original name is set in the xbmc database. In fact MediaElch doesn't retrieve the metadata from the xbmc database when there is only the name set but not the original name. About the hash calculation i will try to change some movies with special characters. Bye Stephane. RE: MediaElch - MediaManager for Mac/Linux/Win - Komet - 2012-09-09 Original name shouldn't matter. I'm using the filename to retrieve the metadata from XBMCs database. It's not up to you to change your movies filenames, it's my part to fix the hash calculation RE: MediaElch - MediaManager for Mac/Linux/Win - Linusorg - 2012-09-11 Hi Komet, just me again with some featurerequests :-) 1) Movies: would it be possible to add a search by imdb id ? Sometimes it would be much easier to identify the movie by this id specially if you are searching for a movie title specially if the movie title is short and contains a secial character aka "Der Grüffelo" 2) TV Shows & TV Show episode list - it would be very nice to support people who have DVD structures for shows : 24 --- 24 Season 01 ------- 24 S01E01E02E03E04 ------------ VIDEO_TS ------------ AUDIO_TS right now for media-elch this will result in 1 Episode 24 Season 01 Episode 01, witch seams to be wrong. 3) Right now i am still searching for some kind of interoperability between media-elch and vimediamanager, which seams to work for most items with the exception of poster and fanart. Both programms storing the same files and i have no idea why these files do not show up in the "oposite" mediamanager. Maybe it would be a step forward if you both get in touch for the benefit for all of us :-) Thanks for listining Linus RE: MediaElch - MediaManager for Mac/Linux/Win - zestef - 2012-09-19 Hi Komet, Yesterday I managed to compile the latest version of MediaElch from GitHub on my MAC (ouch compiling the mysql driver was not easy for me). So now that the debug log is active, I have a little bit more information about my problems. Quote:What's going wrong in case 2 and 3 is there is some bug in MediaElchs XBMC sql interface, maybe the special characters don't get escaped or something like that. So MediaElch couldn't retrieve the metadata from the database. Case 2 : I've got this problem only with the three Ice Age movies, the french Spelling is "L'Âge de glace", i think the problem concerns the "Â" character, and by consequence the hash calculation : Here is an example with the ice age fanart : Real Path (on my system) = "/Users/zestef/Library/Application Support/XBMC/userdata/Thumbnails/Video/Fanart/4d1b627f.tbn" fanartPath ( from MediaElch Log) = "/Users/zestef/Library/Application Support/XBMC/userdata/Thumbnails/Video/Fanart/f4598df6.tbn" Case 3 : the problem is on the apostrophe character ' who is replaced by a double apostrophe character '' in your XbmcSQL.cpp file (sqlWhereFile / loadMovie process), I've just changed the double apostrophe back to a simple apostrophe and the problem is gone. But maybe there are others implications that i don't understand. I will make more test in the future with tv shows who seems to have problems with poster, season poster and banner. Thanks for your work. Zestef. RE: MediaElch - MediaManager for Mac/Linux/Win - GreenEyez - 2012-09-19 Komet, speaking of github, i see 0.9.6 is completed (which includes the new debug options as far as i can tell), any plans on releasing the binaries for it, or are you also skipping this version and going to 0.9.7 directly ? RE: MediaElch - MediaManager for Mac/Linux/Win - Komet - 2012-09-20 (2012-09-19, 09:45)zestef Wrote: Case 2 : I've got this problem only with the three Ice Age movies, the french Spelling is "L'Âge de glace", i think the problem concerns the "Â" character, and by consequence the hash calculation : Case 2: I checked the hash functions and actually the problem lays not here. It seems like XBMC doesn't take the path with special characters included. I looked through XBMCs code and found the hash function they use. It's basically the same as mine. I also tried out the functions mentioned in the wiki (http://wiki.xbmc.org/index.php?title=thumbnails#Hashing) and guess what: The hash they calculate is also not the same as in XBMC when it comes to filenames with special characters... On IRC I already asked but don't got an answer. If somebody might help me here, you're welcome! Case 3: The double apostroph is correct, escaping of apostrophs in SQL is done with another apostroph. The problem is the accent in "Vidéos" which is causing problems with the sql query. I experimented a little bit but haven't found a solution yet. (2012-09-19, 09:50)GreenEyez Wrote: Komet, speaking of github, i see 0.9.6 is completed (which includes the new debug options as far as i can tell), any plans on releasing the binaries for it, or are you also skipping this version and going to 0.9.7 directly ? Yes, will be released today But don't rely on the milestones on github, they get automatically completed when there's no issue left. Sometimes I don't record everything as issue in github or decide to include some issues from later milestones. RE: MediaElch - MediaManager for Mac/Linux/Win - ZaPHoN - 2012-09-20 (2012-09-08, 16:08)Komet Wrote:(2012-09-08, 07:45)ZaPHoN Wrote: This can't be installed in ubuntu 11.10 OneiricMaybe I'll have a look into this but I'm testing the deb's only with the latest stable Ubuntu release. All others are free to compile MediaElch on their own I'm getting an error 127 at the end. Can you tell me what's wrong please. Code: git clone https://github.com/Komet/MediaElch.git RE: MediaElch - MediaManager for Mac/Linux/Win - ZaPHoN - 2012-09-20 Oops didn't have g++ installed. This fixed it. sudo apt-get install build-essential g++ RE: MediaElch - MediaManager for Mac/Linux/Win - zestef - 2012-09-20 (2012-09-20, 09:02)Komet Wrote:Hi Komet,(2012-09-19, 09:45)zestef Wrote: Case 3 : the problem is on the apostrophe character ' who is replaced by a double apostrophe character '' in your XbmcSQL.cpp file (sqlWhereFile / loadMovie process), I've just changed the double apostrophe back to a simple apostrophe and the problem is gone. But maybe there are others implications that i don't understand.Case 3: The double apostroph is correct, escaping of apostrophs in SQL is done with another apostroph. The problem is the accent in "Vidéos" which is causing problems with the sql query. I experimented a little bit but haven't found a solution yet. Sorry to insist but I compiled your code (XbmcSQL.cpp file) with the following change and every SQL query works (all my movies metadata are now displayed in mediaElch) : Code: if (m_isMySQL) { Replaced by : Code: if (m_isMySQL) { Regards Zestef RE: MediaElch - MediaManager for Mac/Linux/Win - Komet - 2012-09-20 (2012-09-20, 17:08)zestef Wrote:(2012-09-20, 09:02)Komet Wrote:Hi Komet,(2012-09-19, 09:45)zestef Wrote: Case 3 : the problem is on the apostrophe character ' who is replaced by a double apostrophe character '' in your XbmcSQL.cpp file (sqlWhereFile / loadMovie process), I've just changed the double apostrophe back to a simple apostrophe and the problem is gone. But maybe there are others implications that i don't understand.Case 3: The double apostroph is correct, escaping of apostrophs in SQL is done with another apostroph. The problem is the accent in "Vidéos" which is causing problems with the sql query. I experimented a little bit but haven't found a solution yet. Are you sure it isn't working without your change? With this change you will run into trouble when a filename contains an apostroph. RE: MediaElch - MediaManager for Mac/Linux/Win - zestef - 2012-09-20 (2012-09-20, 17:11)Komet Wrote: Are you sure it isn't working without your change? With this change you will run into trouble when a filename contains an apostroph.Yes i'm 100% sure (and i have filename with apostroph), Here is the test i've just done : Test movie : Volumes/Vidéos/Animations/Autres/Yogi L'ours [2010]/Yogi L'ours [2010].mkv -> MediaElch compiled with double apostroph : the mediadata aren't retrieved from the mysql database (the "new flag is displayed before the title name in the left column). with the following log : Code: "void MovieWidget::setMovie(Movie *) :" Entered, movie= "Yogi l'ours [2010]" -> MediaElch compiled with simple apostroph : the mediadata are retrieved from the mysql database and correctly displayed. Code: "virtual bool XbmcSql::loadMovie(Movie *) :" Entered, movie= "" Hope it's help. Zestef |