| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Remove TotemPlParserMetadata as a separate type. It will only be
exposes in C, not in bindings.
This fixes gjs warnings such as:
(gjs:2781): Gjs-WARNING **: 21:48:14.325: JS ERROR: Error: No introspection information found for TotemPlParserMetadata
Closes: #22
|
| |
|
|
|
|
| |
We'll want to use it earlier in the file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As per the API documentation, and the code when it still used
g_simple_async_result_*, totem_pl_parser_parse_finish() should return a
TotemPlParserResult of TOTEM_PL_PARSER_RESULT_CANCELLED when parsing is
cancelled.
But the port to GTask changed that, as all the errors caught during
parsing would return -1 as the error code, which isn't a valid
TotemPlParserResult value.
As the only way for totem_pl_parser_parse_finish() to have a GError set
is for the call to be cancelled, catch that and correct the return
value.
Fixes: 45664037 ("plparse: Port from GSimpleAsyncResult to GTask")
Closes: #38
|
|
|
|
| |
The function doesn't return TRUE/FALSE, but a TotemPlParserResult.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.c: In function ‘get_tzone’:
../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.c:322:25: warning: ‘g_time_zone_new’ is deprecated: Use 'g_time_zone_new_identifier' instead [-Wdeprecated-declarations]
322 | return g_time_zone_new (tzone);
| ^~~~~~
In file included from /usr/include/glib-2.0/glib/gdatetime.h:31,
from /usr/include/glib-2.0/glib/gbookmarkfile.h:26,
from /usr/include/glib-2.0/glib.h:37,
from ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.h:20,
from ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.c:24:
/usr/include/glib-2.0/glib/gtimezone.h:57:25: note: declared here
57 | GTimeZone * g_time_zone_new (const gchar *identifier);
| ^~~~~~~~~~~~~~~
../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.c:341:25: warning: ‘g_time_zone_new’ is deprecated: Use 'g_time_zone_new_identifier' instead [-Wdeprecated-declarations]
341 | return g_time_zone_new (tzone);
| ^~~~~~
In file included from /usr/include/glib-2.0/glib/gdatetime.h:31,
from /usr/include/glib-2.0/glib/gbookmarkfile.h:26,
from /usr/include/glib-2.0/glib.h:37,
from ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.h:20,
from ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser-decode-date.c:24:
/usr/include/glib-2.0/glib/gtimezone.h:57:25: note: declared here
57 | GTimeZone * g_time_zone_new (const gchar *identifier);
| ^~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The "volatile" keyword was removed.
In file included from /usr/include/glib-2.0/glib/gthread.h:32,
from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
from /usr/include/glib-2.0/glib.h:32,
from ../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser.c:128:
../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser.c: In function ‘totem_pl_parser_get_type’:
/usr/include/glib-2.0/glib/gatomic.h:113:5: warning: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier [-Wincompatible-pointer-types]
113 | __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
| ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:260:7: note: in expansion of macro ‘g_atomic_pointer_get’
260 | (!g_atomic_pointer_get (location) && \
| ^~~~~~~~~~~~~~~~~~~~
../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser.c:307:13: note: in expansion of macro ‘g_once_init_enter’
307 | if (g_once_init_enter (&g_define_type_id__volatile))
| ^~~~~~~~~~~~~~~~~
../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser.c: In function ‘totem_pl_parser_metadata_get_type’:
/usr/include/glib-2.0/glib/gatomic.h:113:5: warning: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier [-Wincompatible-pointer-types]
113 | __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
| ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:260:7: note: in expansion of macro ‘g_atomic_pointer_get’
260 | (!g_atomic_pointer_get (location) && \
| ^~~~~~~~~~~~~~~~~~~~
../../../../Projects/jhbuild/totem-pl-parser/plparse/totem-pl-parser.c:2784:13: note: in expansion of macro ‘g_once_init_enter’
2784 | if (g_once_init_enter (&g_define_type_id__volatile))
| ^~~~~~~~~~~~~~~~~
|
| |
|
| |
|
|
|
|
| |
So we know the license
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Refer: https://podcasts.apple.com/us/genre/podcasts/id26 for full list
of genres supported by <itunes:category> tag.
Considering "MG = Main Genre" and "SG = Sub Genre", iTunes genre can
be of the following 2 basic forms:
1. MG ( E.g. Business )
2. MG/SG ( E.g. Science/Astronomy )
The first such genre value is assigned to TOTEM_PL_PARSER_FIELD_GENRE
metadata field
Combinations of the above 2 forms are valid too:
1. MG,MG/SG etc ( E.g. Music,Leisure/Hobbies )
2. MG1/SG1,MG2/SG2 etc ( E.g. Business/Investing,Education/Self Improvement )
The full genre value is assigned to TOTEM_PL_PARSER_FIELD_GENRES
metadata field
|
|
|
|
|
| |
Build failed on systems using -Os cflags with:
- totem-pl-parser.c:1776:14: error: ‘ret’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
|
|
|
|
|
|
| |
Note that this changes the result of the
test_parsing_needle_carriage_return() ATOM test which now returns a
single entry.
|
|
|
|
|
|
|
|
| |
We don't need to check whether links in RSS feeds are videosite links
unless the application requested that we do, by enabling recursive
parsing.
Closes: #25
|
| |
|
|
|
|
| |
This tests for invalid byte sequences which do not fit in any charset.
|
|
|
|
|
|
|
|
| |
This is useful for debugging invalid XML documents. Provides the
following debug information.
Invalid byte sequence in conversion input: byte offset 22493, byte:
'\xe2', byte context: 'ience from Valentine\xe2'
|
| |
|
| |
|
|
|
|
|
|
| |
libquvi has been dead upstream for a number of years, and recent lua
changes made it drop from distributions. It wasn't used in our official
distribution channel, through Flathub.
|
|
|
|
|
|
| |
Replace the quvi "videosite" script as used in tests by a mock script
that mimicks the behaviour of quvi. This allows us to test the videosite
code rather than scripts which we don't ship anyway.
|
|
|
|
|
| |
Make sure to pass the debug flag down from the parser to the videosite
helper.
|
| |
|
|
|
|
|
| |
This is a partial revert of 2008 commit 3247aa1c, since node element
names do not carry whitespaces with them.
|
|
|
|
| |
This includes needle checks for rss / atom / opml docs.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change properly null terminates the CDATA values. For shorter
CDATA values, this fix is mandatory to override the token buffer text
which contains the previous token value of '<![CDATA['. CDATA value is
overwritten on top of this CDATA marker causing garbage data.
For longer CDATA values, this wasn't an issue, as the token buffer (
64K ) is already filled with NULL chars, causing this issue to not
show up.
Closes: #30
|
| |
|
|
|
|
| |
Closes: #31
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
The test expected us to pass invalid UTF-8 through, and just feed it to
the calling application.
GLib APIs actually guarantee that data passed is UTF-8 unless stated
otherwise, so make sure that no data is parsed if the data isn't UTF-8
and we can't detect what encoding it's in.
|
|
|
|
|
| |
Use uchardet when available to detect the encoding of XML data when the
declared encoding doesn't match the data passed.
|
|
|
|
|
| |
We shouldn't blindly return data as UTF-8 simply because the XML header
says that it is UTF-8.
|
|
|
|
|
|
|
|
| |
Don't try to convert from "utf-8" to "UTF-8", as encodings aren't
case sensitive.
Encodings are defined in:
https://www.iana.org/assignments/character-sets/character-sets.xhtml
|
| |
|
|
|
|
|
|
| |
Incorrect commit message.
This reverts commit de23ed726be65424c05d18c2fba3054b68bb8666.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Don't try to convert from "utf-8" to "UTF-8" encodings, as those are one
and the same, and iconv will fail when trying that.
Encodings are defined in:
https://www.iana.org/assignments/character-sets/character-sets.xhtml
|
| |
|
| |
|
|
|
|
|
|
| |
This should be useful for apps which need the feed content type. This
is currently required for OPML feeds, since they need to be handled
differently by the apps than other feeds.
|
| |
|
|
|
|
| |
Closes: #28
|
| |
|
| |
|