Posts: 20
Joined: Feb 2011
Reputation:
0
any chance the sql can be put somewhere else? the links above seem to be expired. I am facing the same problem.
Posts: 115
Joined: Feb 2009
Reputation:
0
Using your query, I am getting:
Operation failed: There was an error while applying the SQL script to the database:
ERROR 1054: Unknown column 'episodes' in 'where clause'
It's weird because it is defined in the code on github. Do you have a copy of your seasons_view you could share?
Posts: 28
Joined: Mar 2021
Reputation:
0
2022-03-31, 12:56
(This post was last modified: 2022-03-31, 13:42 by SakuraKira.)
Query is not working. I fiddled out the errors of „spaces“ but it still throws an error.
I had fixed the database this way on MySQL but now I don’t know anymore how the syntax was.
I have a lot of movies and TVShows (looks like more others in this thread have) so my „problem“ is quite extreme
Posts: 78
Joined: Aug 2016
Reputation:
16
Blodan's original code (see thread above) used "HAVING episodes" instead of "WHERE episodes" so if you are using MYSQL instead of SQLite you may try that (although as you point out, the error message you're getting doesn't fit). My code works on Kodi 18 / MyVideos116.db with SQLite.
Posts: 28
Joined: Mar 2021
Reputation:
0
2022-03-31, 17:30
(This post was last modified: 2022-04-02, 22:13 by SakuraKira.)
The code posted by you an blodan in the pastebin is gone since pastebin has only some days retention.
The code on github does not work (even when fixing the obvious bugs with missing spaces).
I am using mariaDB btw
I can see when querying the View via HeidiSQL it takes forever which is the result of over 1000 series with multiple Episodes. Some even with 100 and more. I think there is a possibility to make the query a lot faster.
Same for tvshowview which is referenced in it.
My machine is not the problem (Xeon 8core with 64gb RAM and System on SSD)
I am not capable enough in SQL to see how to speed up the views