ejurgensen
d57b7565da
[mpd] Add Bison/Flex parser for complex mpd commands + misc
...
Some of the misc:
* Initialize query_params from the start of each function
* Reduce code duplication by consolidating the handler's integer conversion
* Go back to classic int return types for handlers
* Change list grouping to respond like mpd
* Sanitize all user string output
2025-01-22 20:22:10 +01:00
ejurgensen
31ab97595e
[smartpl] Support larger smart playlists ( fixes #1521 )
2022-08-08 17:42:54 +02:00
ejurgensen
0bde7acce8
[smartpl] Fix parsing of CRLF and "NOT (" ( closes #1502 )
2022-06-28 20:46:20 +02:00
whatdoineed2do/Ray
5cebf4aca2
[smartpl] add 'file_size'
2022-05-13 15:27:02 +01:00
ejurgensen
a932cc532d
[smartpl] Increase size of parse output buffer
...
To accommodate for larger smart playlists
2022-03-24 22:58:54 +01:00
ejurgensen
75f6f75da3
[smartpl] Fix bison parser regression, missing "starts with" syntax
...
Also adds "ends with" syntax just for good measure.
Closes #1432
2022-03-07 23:31:52 +01:00
ejurgensen
e6823199d6
[db] Fix incorrect sorting of album/artist searches via web api ( #1421 )
...
Fix incorrect sorting of album/artist searches via web api. Also works with composers etc.
Fixes issue #1418
2022-02-20 10:18:13 +01:00
whatdoineed2do/Ray
c66df6864c
[smartpl] add 'THIS WEEK'
2022-01-31 17:23:48 +01:00
ejurgensen
d6a9ef4081
[smartpl] Minor lexer simplification
2022-01-31 17:21:53 +01:00
ejurgensen
75c3590741
[parsers] Use YYABORT instead of negative return
...
Seems return could lead to a memleak of yymsg
2022-01-31 00:44:29 +01:00
ejurgensen
75c6733832
[smartpl] Add "scan_kind" field to smart query language (bison/flex version)
...
bison/flex version of commit #1694e6e
2022-01-30 09:58:48 +01:00
ejurgensen
d0bfe193ee
[rsp] Add more keywords to RSP lexer
...
Just in case they might be needed by some client
2022-01-29 17:46:40 +01:00
ejurgensen
71b4444118
[rsp] Add basic bison/flex RSP parser
2022-01-29 17:46:40 +01:00
ejurgensen
9c1f7dd380
[smartpl] Add ESCAPE to LIKE queries where the value contains % and _
...
Plus various minor improvements
2022-01-29 17:46:40 +01:00
ejurgensen
9233c03ca8
[daap] Unescaping of \' in the value part of a daap clause
2022-01-29 17:46:40 +01:00
ejurgensen
6238647202
[smartpl] Minor improvements to parser
2022-01-29 17:46:40 +01:00
ejurgensen
3898a4b588
[smartpl] Make parser return actual datakind/mediakind values from db.h
2022-01-29 17:46:40 +01:00
ejurgensen
db6f300071
[daap/smartpl] Fix print masks in parsers
2022-01-29 17:46:40 +01:00
ejurgensen
7b93336cab
[smartpl] Escape value fields (protect against SQL injections)
2022-01-29 17:46:40 +01:00
ejurgensen
54f6004bf9
[daap] Place ESCAPE properly in SQL query
2022-01-29 17:46:40 +01:00
ejurgensen
f36d1cce6d
Put bison/flex files in parsers dir, so scan-build --exclude can be used
...
The autogenerated files create warnings that we can't do much about, so
exclude them.
2022-01-29 17:46:40 +01:00