OutOfMemory exception on parsing PodCasts
Status: Beta
Brought to you by:
adrian-ts
Hi,
This is maybe more a "feature request" ;-), to make it
work with podcasts:
I've got some podcasts in my iTunesDB. When debugging,
I saw it crashing on mhod type 15 (podcast url). The
current code does not support the special types 15 and
16. I'm not yet used to the spring framework, so I was
not yet able to resolve the problem.
Currently the iTunesDB specs
(http://www.ipodlinux.org/ITunesDB) are not available,
but google has a cached copy. The specs describe the
format of types 15 and 16.
greets,
Otrivine
P.S.: nice parsing.
Logged In: YES
user_id=1153811
After som further debugging I made next conclusions:
- the problem occurs because the length of the podcast url
is unknown and cannot be retrieved at the point it is parsed
(ParserUtils.extractMhodDataItem()).
- the parsing of the the mhod blocks is split up: mhod
header, mhod type A (type<50) and mhod type B (type=100).
Because the header is parsed seperate than the body, it is
not possible to retrieve the length (="total length" header
field - "header length" header field) at the point of
parsing the body.
So a solution would be to put header and body together for
each seperate type.
Hope this helps.
If I find some more time, maybe I'll try to code this.