[weboob] Filtering on fields: some comments
guilhem.bonnefille at gmail.com
Tue Nov 18 22:47:10 CET 2014
2014-11-18 16:07 GMT+01:00 Benjamin CARTON <carton_ben at yahoo.fr>:
> I think that using "--select $full" instead of" --select ...t,thumbnail,..."
> should solve your problems.
Of course, "--select $full" does a quite good job. But it is really
really time consuming.
In fact, Grilo, the extensible multimedia framework Totem is based on,
has the equivalent of the --select weboob's option. What I'm trying to
do is to translate the request received by Grilo to weboob. By doing
that, I expect to have the best of the two worlds:
- if the Grilo client does not want an information taht request in
deep processing, the weboob action is fast.
- if the Grilo client request such information, only on this case the
weboob processing is long.
But this does not work as expected.
An other solution could be to request weboob for all direct
informations (those that not require an in deep processing) and
ensuring explicit informations are reported. Something like "--select
$direct,title,author". But this strategy does not work: when
requesting "--select $direct,url" the url is not fetched.
Or perhaps should we implement an other option in weboob: instead of
"--select" which try to "filter" the result, perhaps should we create
a "--require" to explicitly express the following fileds are required,
without affecting the reporting of others already computed fields.
> Le Mardi 18 novembre 2014 14h34, Guilhem Bonnefille
> <guilhem.bonnefille at gmail.com> a écrit :
> Still working on my glue for integrating videoob in Totem via Grilo.
> I've juste realized that Grilo express wich fields are expected as
> result of a query. So, I updated my glue in order to translate this
> info and pass it to the --select option. Doing so, the goal is to
> force (or not) videoob to retrieve information requiring a two-pass
> (like "url" field). But the behavior is not really what I expected.
> When browsing, "videoob ... ls" complaint:
> Bug(youtube): Field "author" not found for object latest (Latest YouTube
> Use --debug option to print backtraces
> As "author" is an information that can be retrieve if the listed
> "virtual folder" contains videos, I do not expect an error, but
> eventually just a warning, or nothing.
> Is it possible to change that?
> When searching, the Grilo expect some information about thumbnail.
> If I translate directly this to videoob (--select ...t,thumbnail,...)
> the request is long. Looking at code, I feel that videoob try to
> download thumbnails.
> If I ignore this field, the thumbnail information is not provided in result.
> Is there a way to request videoob to expose thumbnail information
> (url) without downloading the thumbnail?
> Thanks in advance for comments.
> Guilhem BONNEFILLE
> -=- JID: guyou at im.apinc.org MSN: guilhem_bonnefille at hotmail.com
> -=- mailto:guilhem.bonnefille at gmail.com
> -=- http://nathguil.free.fr/
> weboob mailing list
> weboob at lists.symlink.me
-=- JID: guyou at im.apinc.org MSN: guilhem_bonnefille at hotmail.com
-=- mailto:guilhem.bonnefille at gmail.com
More information about the weboob