while trying to customize the webpage to have a more native look it
seems that it would be nice, if one could specify JAPELSOURCE and the
associated PROFILES block on different lines. That would be necessary
if one would like to build more complex structures. Perhaps it is
possible to create two new block structures for template parsing,
let's say MOVIELIST and MOVIEDETAILS, similar to the PROFILES block
structure. I'll show you an example of what I mean:
Extract from index.html template
-----------------------------------------------
<ul id="home" title="Movies">
<MOVIESLIST>
<li><a href="#MOVIENUMBER">JAPELSOURCE</a></li>
</MOVIESLIST>
</ul>
<MOVIEDETAILS>
<ul id="MOVIENUMBER" title="JAPELSOURCE">
<PROFILES><li><a href="JAPELPROFILELINK">JAPELPROFILE</a></li></
PROFILES>
</ul>
</MOVIEDETAILS>
After parsing has been done
-----------------------------------------
<ul id="home" title="Movies">
<li><a href="#Movie1">Title of Movie1</a></li>
<li><a href="#Movie2">Title of Movie2</a></li>
</ul>
<ul id="Movie1" title="Title of Movie1">
<li><a href="http://10.0.0.1:8888/Movie1.mpg.m3u8?profile=50k">50k</
a></li>
<li><a href="http://10.0.0.1:8888/Movie1.mpg.m3u8?profile=500k">500k</
a></li>
</ul>
<ul id="Movie2" title="Title of Movie2">
<li><a href="http://10.0.0.1:8888/Movie2.mpg.m3u8?profile=50k">50k</
a></li>
<li><a href="http://10.0.0.1:8888/Movie2.mpg.m3u8?profile=500k">500k</
a></li>
</ul>
It's just an idea and I do know that this will blow up the parser for
the index.html, but I just wanted to know, what you think about it.
I'm not that good at Java programming otherwise I would have tried to
help and to modify Connection.java by myself or to extract the code
into some kind of Parser.java.
Holger
By the way, I don't want to be annoying but I really do like the
concept of your software. So if you think I'm posting too much, let me
know ;-)
Holger
On 14 Jan., 15:15, Patrick <patrick.ball...@gmail.com> wrote:
> Thanks for the suggestion.
>
> Right now I am parsing line by line, that's why you have that restriction.
> But I'll work on a more elegant way to include profiles in the html page...
> The main problem I was facing is to know for which movie I have ot specify
> the profile quote. But you gave me an idea that could work and make it
> easier to include the profiles.
>
> Pat
>
> On Thu, Jan 14, 2010 at 7:17 AM, Holger Pandel <holger.pan...@googlemail.com