sboehringer / mediathek

Automatically download youtube channels and programming from public German TV stations
GNU Lesser General Public License v2.1
16 stars 2 forks source link

No search results shown (Raspberry PI / OSMC) #2

Closed meinnamehier closed 8 years ago

meinnamehier commented 8 years ago

Hi,

I installed mediathek on a Raspberry PI running OSMC. It worked (I had to install LWP::Simple by hand).

But now, whenever I do a search, e.g. ./mediathek-worker.pl --search 'channel:ARD'

or ./mediathek-worker.pl --search 'channel:ARD;topic:%Tatort%;title:!%Hörfassung%'

I get the results table

Channel Date                Title
-------------------------------------------------------------------------------

but no results. My Internet works, I tested it by pinging external servers.

What am I missing?

sboehringer commented 8 years ago

Did you issue

./mediathek-worker.pl --createdb
./mediathek-worker.pl --updatedb

first?

meinnamehier commented 8 years ago

I had done --createdb, but not --updatedb I just did --updatedb, it went through. When I did ./mediathek-worker.pl --search 'channel:ARD' it still did not work. Same problem as above

meinnamehier commented 8 years ago

Here's the output of --updatedb

mediathek-worker.pl[568]: Fetching http://zdfmediathk.sourceforge.net/update-json.xml --> /home/osmc/.local/share/applications/mediathek/servers.xml [No: 0/1]
sh: 1: xml: not found
mediathek-worker.pl[568]: Now: 2016-03-03 22:39:45, pruning older than: 2016-02-22 22:39:45
mediathek-worker.pl[568]: About to delete 0 items.
xzcat: Leere Dateiname, überspringe
mediathek-worker.pl[568]: Added 0 items.
sboehringer commented 8 years ago

This is a problem with xmlstartlet

ln -s `which xmlstarlet` ~/bin/xml

Then check with xml -h whether xml can be used to execute xmlstarlet.

meinnamehier commented 8 years ago

hm.... i did the commands. but, i was in the wrond directory (not /mediathek) - I hope that didn't create problems. when I do xml -h i get this:

XMLStarlet Toolkit: Command line utilities for XML
Usage: xml [<options>] <command> [<cmd-options>]
where <command> is one of:
  ed    (or edit)      - Edit/Update XML document(s)
  sel   (or select)    - Select data or query XML document(s) (XPATH, etc)
  tr    (or transform) - Transform XML document(s) using XSLT
  val   (or validate)  - Validate XML document(s) (well-formed/DTD/XSD/RelaxNG)
  fo    (or format)    - Format XML document(s)
  el    (or elements)  - Display element structure of XML document
  c14n  (or canonic)   - XML canonicalization
  ls    (or list)      - List directory as XML
  esc   (or escape)    - Escape special XML characters
  unesc (or unescape)  - Unescape special XML characters
  pyx   (or xmln)      - Convert XML into PYX format (based on ESIS - ISO 8879)
  p2x   (or depyx)     - Convert PYX into XML
<options> are:
  -q or --quiet        - no error output
  --doc-namespace      - extract namespace bindings from input doc (default)
  --no-doc-namespace   - don't extract namespace bindings from input doc
  --version            - show version
  --help               - show help
Wherever file name mentioned in command help it is assumed
that URL can be used instead as well.

Type: xml <command> --help <ENTER> for command help

XMLStarlet is a command line toolkit to query/edit/check/transform
XML documents (for more information see http://xmlstar.sourceforge.net/)
meinnamehier commented 8 years ago

And i still get nor results when doing ./mediathek-worker.pl --search 'channel:ARD%'

meinnamehier commented 8 years ago

Success! I did an --updatedb and it went on for a while (much different from the last try). now, i get results when searching.