fhs-xmltv-tools


Namefhs-xmltv-tools JSON
Version 0.1.14 PyPI version JSON
download
home_pagehttps://github.com/foxhunt72/fhs-xmltv-tools
Summaryxmltv tools
upload_time2022-12-23 22:14:13
maintainer
docs_urlNone
authorRichard de Vos
requires_python
licenseMIT license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ===============
fhs_xmltv_tools
===============

Version
-------

0.1.14

For changes see changelog_

.. _changelog: https://github.com/foxhunt72/fhs-xmltv-tools/blob/main/CHANGELOG.md

Intro
-----

I wanted to know more about the xmltv_ xml file i downloaded for my iptv and i wanted to know how it all worked.
So i am starting to create my own tools

You can do the following things with your xmltv file

- list the channels inside
- analyse-programs, show channels with first start time and last stop time
- you can cleanup your xmltv file, remove all except of the list of channels that you want to have
- you can join to xmltv files to one
- change the timezone of a time in the programs
- search for a program in a xmltv
- search for a program in sql
- save program data to a sql database

I also created a program to handle m3u8 files with iptv channels, see iptv_ or pipiptv_

And automate and chain all the staps using a `yaml command`_ task file.

But the tool is getting more advanced every day, so use it, you can find the source_ on github.

See pypi: https://pypi.org/project/fhs-xmltv-tools/ or github https://github.com/foxhunt72/fhx-xmltv-tools

Clean up xmltv files, with only the channels you want and even join multiple together,
also easy if you need to change timezone from one of the files.

You can use this with every program that needs some xmltv file, like tvheadend_, kodi_, nextpvr_ etc.


.. _xmltv: http://wiki.xmltv.org
.. _tvheadend: https://tvheadend.org
.. _kodi: https://kodi.tv
.. _nextpvr: https://www.nextpvr.com
.. _source: https://github.com/foxhunt72/fhs-xmltv-tools
.. _iptv: https://github.com/foxhunt72/fhs-iptv-tools
.. _pipiptv: https://pypi.org/project/fhs-iptv-tools


Usage
-----

- fhs-xmltv-tools interactive
- fhs-xmltv-tools `analyse-programs`_ --xmltv-file <xml_file>
- fhs-xmltv-tools `list-channels`_ --xmltv-file <xml_file
- fhs-xmltv-tools `channel-details`_ --xmltv-file <xml_file> [--channel-id <channel_id>] [--index <index>]
- fhs-xmltv-tools `join-xml-files`_ --xmltv-file <xml_file> --xmltv-file-add <xml_file2> --xmltv-out <xmltv_out>
- fhs-xmltv-tools `search-program`_ --xmltv-file <xml_file> --search <regex to program name to search>
- fhs-xmltv-tools `write-xmlfile-channels`_ <channel_file> --xmltv-file <xml_file> --xmltv-out <xml_out)>
- fhs-xmltv-tools `xmltv-to-sql`_ --xmltv-file <xml_file> [--sqltype <sqltype> --sqlconnect <sqlconnect>
- fhs-xmltv-tools `search-program-sql`_  [--sqltype <sqltype> --sqlconnect <sqlconnect> --search <regex to program name to search>

And the best option, i think to automate your xml needs

- fhs-xmltv-tools `run-tasks`_ --yaml-command <yaml_command_file>

See the `yaml command`_ file in Examples.

Offcourse this are only the basic options use the --help to see all the extra options

.. _`example-proef`:

Installation
------------

.. code-block:: bash

  git clone https://github.com/foxhunt72/fhs-xmltv-tools
  cd fhs-xmltv-tools
  pip3 install .

  pipx install fhs_xmltv_tools
  pipx install fhs_xmltv_tools[all]
  phpx install fhs_xmltv_tools[sqlite]
  or
  pip3 install fhs_xmltv_tools
  pip3 install fhs_xmltv_tools[all]
  pip3 install fhs_xmltv_tools[sqlite]

Scripts yaml example
~~~~~~~~~~~~~~~~~~~~

.. _`yaml command`:

This is a simpel yaml task file.
Change the url etc.

And run it with

.. code-block:: bash
   
   fhs-xmltv-tools run-tasks --yaml-command <yaml_command_file>

Yaml task file.


.. code-block:: yaml

  tasks:
    - name: download tvxml file
      command: execute_command
      execute: "wget -4 https://download_url_xmltv.xml.gz -O - | gzip -d >/tmp/test.xml && mv -f /tmp/test.xml tv.epg.xml"
      shell: true
      tags: update
    - name: load xmltv file
      command: loadxml
      file: tv.epg.xml
      store: tv
    - name: analyse_programs
      title: tv_programs
      command: analyse_programs
      store: tv
    - name: clean up tv
      command: keep_channels
      store: tv
      channels:
        - RTL4.nl
        - RTL5.nl
    - name: change timezone
      command: change_timezone
      search: " +0000"
      replace: " +0200"
      store: tv
    - name: load xmltv  file
      command: loadxml
      file: tv20220924_21.xmltv
      store: xmltv
    - name: clean up xmltv
      command: only_channels
      store: xmltv
      channels:
        - AnimalPlanet.dk
        - fox9knin.us
    - name: add xmltv to tv
      command: add
      store: tv
      add_store: xmltv
    - name: save tv file
      command: savexml
      file: /tmp/new_tv.xml
      store: tv
    - name: save sql
      command: savesql
      sqlconnect: /tmp/new_tv.db
      store: tv

Commands explained
~~~~~~~~~~~~~~~~~~

.. _`analyse-programs`:

analyse-program
***************

This functions will read a xmltv file and give a list of all channels with a per channel a start and stop time.

As options you have:

- --xmltv-file <xmltv_file_to_read>    or use environt varialbe   fhs_xmltv_file
- --force-color                        force use of color in output (for example to save to file)
- --no-color                           use no color in output

See help output of command with --help

.. code-block:: bash

 fhs-xmltv-tools analyse-programs --help | cat
                                                                                                                                                                                    
 Usage: fhs-xmltv-tools analyse-programs [OPTIONS]                                                                                                                                  
                                                                                                                                                                                    
 Analyse channels xml.                                                                                                                                                              
 Args:     force_color: force color in pipeline for example     xmltv_file: xmltv file to use                                                                                       
                                                                                                                                                                                    
 ╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ *  --xmltv-file                   TEXT  read xmltv file [env var: fhs_xmltv_file] [default: None] [required]                                                                     │
 │    --force-color    --no-color          force color in pipelines [default: no-color]                                                                                             │
 │    --help                               Show this message and exit.                                                                                                              │
 ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Example usage

.. code-block:: bash

  # download a tvguide for example us
  wget -4 https://iptv-org.github.io/epg/guides/us/tvguide.com.epg.xml.gz -O - | gzip -d >tvguide.com.epg.xml

  fhs-xmltv-tools analyse-programs --xmltv-file tvguide.com.epg.xml
  
  ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
  ┃ Id                            ┃ start time           ┃ end time             ┃ programs ┃
  ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
  │ ABCEast.us                    │ 20221006000000 +0000 │ 20221008000000 +0000 │       38 │
  │ AEEast.us                     │ 20221006000000 +0000 │ 20221008000000 +0000 │       54 │
  │ AMCEast.us                    │ 20221006000000 +0000 │ 20221008020000 +0000 │       39 │
  │ AnimalPlanetEast.us           │ 20221006000000 +0000 │ 20221008000000 +0000 │       48 │
  │ BBCAmericaEast.us             │ 20221006000000 +0000 │ 20221008010000 +0000 │       35 │
  │ BETEast.us                    │ 20221006000000 +0000 │ 20221008000000 +0000 │       69 │
  

  .. _`list-channels`:


list-channels
*************
  
This functions will read a xmltv file and give a list of all channels with a per channel a index, id and channel name

As options you have:

- --xmltv-file <xmltv_file_to_read>    or use environt varialbe   fhs_xmltv_file
- --force-color                        force use of color in output (for example to save to file)
- --no-color                           use no color in output
- --ignore-empty-id                    don't display channels without a id

Example usage

.. code-block:: bash

  # download a tvguide for example us
  wget -4 https://iptv-org.github.io/epg/guides/us/tvguide.com.epg.xml.gz -O - | gzip -d >tvguide.com.epg.xml

  fhs-xmltv-tools list-channels --xmltv-file tvguide.com.epg.xml
  ┏━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
  ┃ Index ┃ Id                            ┃ Channel                      ┃
  ┡━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
  │     1 │ ABCEast.us                    │ ABC East                     │
  │     2 │ AEEast.us                     │ A&E East                     │
  │     3 │ AMCEast.us                    │ AMC East                     │
  │     4 │ AnimalPlanetEast.us           │ Animal Planet East           │
  │     5 │ BBCAmericaEast.us             │ BBC America East             │
  │     6 │ BETEast.us                    │ BET East                     │
  │     7 │ BravoEast.us                  │ Bravo East                   │


  .. _`channel-details`:


channel-details
***************
  
List the channel info from a xmltv file

As options you have:

- --xmltv-file <xmltv_file_to_read>    or use environt varialbe   fhs_xmltv_file
- --index <indexnr>                    display the channel with index nr, see output of `list-channels`_
- --channelid                          display the channel with channel id, see output of `list-channels`_



Example usage

.. code-block:: bash

  # download a tvguide for example us
  wget -4 https://iptv-org.github.io/epg/guides/us/tvguide.com.epg.xml.gz -O - | gzip -d >tvguide.com.epg.xml

  fhs-xmltv-tools channel-details --xmltv-file tvguide.com.epg.xml --index 1
  Channel(display_name=[DisplayName(content=['ABC East'], lang=None)],
        icon=[Icon(src='https://upload.wikimedia.org/wikipedia/commons/thumb/2/2f/ABC-2021-LOGO.svg/512px-ABC-2021-LOGO.svg.png',
                   width=None,
                   height=None)],
        url=['https://tvguide.com'],
        id='ABCEast.us')

.. _`join-xml-files`:

join-xml-files
**************

Join 2 xml files to one xml file.

As options you have

.. code-block:: bash

  fhs-xmltv-tools join-xml-files --help
                                                                                                           
  Usage: fhs-xmltv-tools join-xml-files [OPTIONS]                                                           
                                                                                                           
   Join 2 xml files and write them out as 1 xml.                                                             
   Args:     xmltv_file: xmltv file to use     xmltv_file_add: xmltv file to use     xmltv_out: write xmltv  
   file     force_color: force color in pipeline for example                                                 
                                                                                                           
  ╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────╮
  │ *  --xmltv-file                      TEXT  read xmltv file [env var: fhs_xmltv_file] [default: None]    │
  │                                            [required]                                                   │
  │ *  --xmltv-file-add                  TEXT  read xmltv file [env var: fhs_xmltv_file] [default: None]    │
  │                                            [required]                                                   │
  │ *  --xmltv-out                       TEXT  write xmltv file [env var: fhs_xmltv_out] [default: None]    │
  │                                            [required]                                                   │
  │    --force-color       --no-color          force color in pipelines [default: no-color]                 │
  │    --help                                  Show this message and exit.                                  │
  ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯

As a example

.. code-block:: bash

 # download a tvguide for example us
 wget -4 https://iptv-org.github.io/epg/guides/us/tvguide.com.epg.xml.gz -O - | gzip -d >tvguide.com.epg.xml
 wget -4 https://iptv-org.github.io/epg/guides/yt/canalplus-reunion.com.epg.xml.gz -O - | gzip -d >canalplus-reunion.com.epg.xml
  
 fhs-xmltv-tools join-xml-files --xmltv-file tvguide.com.epg.xml --xmltv-file-add canalplus-reunion.com.epg.xml --xmltv-out out.xml
 
.. _`search-program`:
 
search-program
************** 

Search a program in a xmltv-file

.. code-block:: bash

 fhs-xmltv-tools search-program --help
                                                                                                           
 Usage: fhs-xmltv-tools search-program [OPTIONS]                                                           
                                                                                                           
 Search program in xml.                                                                                    
 Args:     search: string or regex to search     force_color: force color in pipeline for example          
 force_case: normal search is case insensitive but with this option force case sensitive     xmltv_file:   
 xmltv file to use                                                                                         
                                                                                                           
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────╮
│ *  --search                                TEXT  regex search [default: None] [required]                │
│ *  --xmltv-file                            TEXT  read xmltv file [env var: fhs_xmltv_file]              │
│                                                  [default: None] [required]                             │
│    --force-color             --no-color          force color in pipelines [default: no-color]           │
│    --force-case-sensitive                                                                               │
│    --help                                        Show this message and exit.                            │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯

.. _`write-xmlfile-channels`:

write-xmlfile-channels
**********************

Cleanup xmltv file by only writing the channels to a new files that you listed in a file.

.. code-block:: bash

 fhs-xmltv-tools write-xmlfile-channels --help                                                                                                           
 Usage: fhs-xmltv-tools write-xmlfile-channels [OPTIONS] CHANNEL_FILE                                      
                                                                                                           
 Write xmlfile with only used channels to xml.                                                             
 Args:     channel_file: file with channels one per line     xmltv_file: xmltv file to use     xmltv_out:  
 write xmltv file     force_color: force color in pipeline for example                                     
                                                                                                           
 ╭─ Arguments ─────────────────────────────────────────────────────────────────────────────────────────────╮
 │ *    channel_file      TEXT  [default: None] [required]                                                 │
 ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯
 ╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────╮
 │ *  --xmltv-file                   TEXT  read xmltv file [env var: fhs_xmltv_file] [default: None]       │
 │                                         [required]                                                      │
 │ *  --xmltv-out                    TEXT  write xmltv file [env var: fhs_xmltv_out] [default: None]       │
 │                                         [required]                                                      │
 │    --force-color    --no-color          force color in pipelines [default: no-color]                    │
 │    --help                               Show this message and exit.                                     │
 ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯

channel_file is a text one with one channel id on every line

.. _`run-tasks`:

run-tasks
*********

Running all the automation you want for xmltv files, task for task using a 

Usage:

.. code-block:: bash

 fhs-xmltv-tools run-tasks --help
                                                                                                                              
 Usage: fhs-xmltv-tools run-tasks [OPTIONS]                                                                                   
                                                                                                                              
 Run tasks in yaml file.                                                                                                      
 Args:     yaml_command: xmltv file to use     force_color: force color in pipeline for example     include_tag: tags from    
 task to include     exclude_tag: exclude tasks with this tag                                                                 
                                                                                                                              
 ╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ *  --yaml-command                  TEXT  read yaml file [env var: fhs_xmltv_yaml] [default: None] [required]               │
 │    --force-color     --no-color          force color in pipelines [default: no-color]                                      │
 │    --include-tag                   TEXT  [default: None]                                                                   │
 │    --exclude-tag                   TEXT  [default: None]                                                                   │
 │    --help                                Show this message and exit.                                                       │
 ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯


.. _`xmltv-to-sql`:

save-xmlfile-to-sql
********************

Write the program data to a sql locaton (like sqlite), that way you can search in programs
for longer times, the search options will come soon.

.. code-block:: bash

 fhs-xmltv-tools xmltv-to-sql --help                                                                                                           
 Usage: fhs-xmltv-tools xmltv-to-sql [OPTIONS]

 Xmltv to sql (using sqlalchemy).
 Args:     force_color: force color in pipeline for example     xmltv_file: xmltv file to use
 sqltype: sqltype type sqlite or sqlalchemy     sqlconnect: connect string, this is the filepath is
 using sqltype = sqlite

 ╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────╮
 │ *  --xmltv-file                   TEXT  read xmltv file [env var: fhs_xmltv_file] [default: None]     │
 │                                         [required]                                                    │
 │    --sqltype                      TEXT  sqltype for now, (default) sqlite or sqlalchemy               │
 │                                         [default: sqlite]                                             │
 │ *  --sqlconnect                   TEXT  sqlconnect how to connect. [default: None] [required]         │
 │    --force-color    --no-color          force color in pipelines [default: no-color]                  │
 │    --help                               Show this message and exit.                                   │
 ╰───────────────────────────────────────────────────────────────────────────────────────────────────────╯


sqlconnect is the file name if using sqlite

.. _`search-program-sql`:

search-program-sql
******************

Search a program in a sql datebase.


You can find a example yaml_ file in the source and also some extra documentation in the examples_ directory.

.. _yaml: https://github.com/foxhunt72/fhs-xmltv-tools/raw/main/Examples/tasks_example.yml
.. _examples: https://github.com/foxhunt72/fhs-xmltv-tools/tree/main/Examples

Requirements
^^^^^^^^^^^^
- typer[all]
- py-xmltv
- pyyaml




Compatibility
-------------


Licence
-------
MIT Licencse

Authors
-------
Richard de Vos

`fhs_xmltv_tools` was written by `Richard de Vos <rdevos72@gmail.com>`_.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/foxhunt72/fhs-xmltv-tools",
    "name": "fhs-xmltv-tools",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Richard de Vos",
    "author_email": "rdevos72@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f0/06/f532f8bc1063c1c3b86ca7725cfe98a4b4def59449fea3a01c93fb194e60/fhs-xmltv-tools-0.1.14.tar.gz",
    "platform": null,
    "description": "===============\nfhs_xmltv_tools\n===============\n\nVersion\n-------\n\n0.1.14\n\nFor changes see changelog_\n\n.. _changelog: https://github.com/foxhunt72/fhs-xmltv-tools/blob/main/CHANGELOG.md\n\nIntro\n-----\n\nI wanted to know more about the xmltv_ xml file i downloaded for my iptv and i wanted to know how it all worked.\nSo i am starting to create my own tools\n\nYou can do the following things with your xmltv file\n\n- list the channels inside\n- analyse-programs, show channels with first start time and last stop time\n- you can cleanup your xmltv file, remove all except of the list of channels that you want to have\n- you can join to xmltv files to one\n- change the timezone of a time in the programs\n- search for a program in a xmltv\n- search for a program in sql\n- save program data to a sql database\n\nI also created a program to handle m3u8 files with iptv channels, see iptv_ or pipiptv_\n\nAnd automate and chain all the staps using a `yaml command`_ task file.\n\nBut the tool is getting more advanced every day, so use it, you can find the source_ on github.\n\nSee pypi: https://pypi.org/project/fhs-xmltv-tools/ or github https://github.com/foxhunt72/fhx-xmltv-tools\n\nClean up xmltv files, with only the channels you want and even join multiple together,\nalso easy if you need to change timezone from one of the files.\n\nYou can use this with every program that needs some xmltv file, like tvheadend_, kodi_, nextpvr_ etc.\n\n\n.. _xmltv: http://wiki.xmltv.org\n.. _tvheadend: https://tvheadend.org\n.. _kodi: https://kodi.tv\n.. _nextpvr: https://www.nextpvr.com\n.. _source: https://github.com/foxhunt72/fhs-xmltv-tools\n.. _iptv: https://github.com/foxhunt72/fhs-iptv-tools\n.. _pipiptv: https://pypi.org/project/fhs-iptv-tools\n\n\nUsage\n-----\n\n- fhs-xmltv-tools interactive\n- fhs-xmltv-tools `analyse-programs`_ --xmltv-file <xml_file>\n- fhs-xmltv-tools `list-channels`_ --xmltv-file <xml_file\n- fhs-xmltv-tools `channel-details`_ --xmltv-file <xml_file> [--channel-id <channel_id>] [--index <index>]\n- fhs-xmltv-tools `join-xml-files`_ --xmltv-file <xml_file> --xmltv-file-add <xml_file2> --xmltv-out <xmltv_out>\n- fhs-xmltv-tools `search-program`_ --xmltv-file <xml_file> --search <regex to program name to search>\n- fhs-xmltv-tools `write-xmlfile-channels`_ <channel_file> --xmltv-file <xml_file> --xmltv-out <xml_out)>\n- fhs-xmltv-tools `xmltv-to-sql`_ --xmltv-file <xml_file> [--sqltype <sqltype> --sqlconnect <sqlconnect>\n- fhs-xmltv-tools `search-program-sql`_  [--sqltype <sqltype> --sqlconnect <sqlconnect> --search <regex to program name to search>\n\nAnd the best option, i think to automate your xml needs\n\n- fhs-xmltv-tools `run-tasks`_ --yaml-command <yaml_command_file>\n\nSee the `yaml command`_ file in Examples.\n\nOffcourse this are only the basic options use the --help to see all the extra options\n\n.. _`example-proef`:\n\nInstallation\n------------\n\n.. code-block:: bash\n\n  git clone https://github.com/foxhunt72/fhs-xmltv-tools\n  cd fhs-xmltv-tools\n  pip3 install .\n\n  pipx install fhs_xmltv_tools\n  pipx install fhs_xmltv_tools[all]\n  phpx install fhs_xmltv_tools[sqlite]\n  or\n  pip3 install fhs_xmltv_tools\n  pip3 install fhs_xmltv_tools[all]\n  pip3 install fhs_xmltv_tools[sqlite]\n\nScripts yaml example\n~~~~~~~~~~~~~~~~~~~~\n\n.. _`yaml command`:\n\nThis is a simpel yaml task file.\nChange the url etc.\n\nAnd run it with\n\n.. code-block:: bash\n   \n   fhs-xmltv-tools run-tasks --yaml-command <yaml_command_file>\n\nYaml task file.\n\n\n.. code-block:: yaml\n\n  tasks:\n    - name: download tvxml file\n      command: execute_command\n      execute: \"wget -4 https://download_url_xmltv.xml.gz -O - | gzip -d >/tmp/test.xml && mv -f /tmp/test.xml tv.epg.xml\"\n      shell: true\n      tags: update\n    - name: load xmltv file\n      command: loadxml\n      file: tv.epg.xml\n      store: tv\n    - name: analyse_programs\n      title: tv_programs\n      command: analyse_programs\n      store: tv\n    - name: clean up tv\n      command: keep_channels\n      store: tv\n      channels:\n        - RTL4.nl\n        - RTL5.nl\n    - name: change timezone\n      command: change_timezone\n      search: \" +0000\"\n      replace: \" +0200\"\n      store: tv\n    - name: load xmltv  file\n      command: loadxml\n      file: tv20220924_21.xmltv\n      store: xmltv\n    - name: clean up xmltv\n      command: only_channels\n      store: xmltv\n      channels:\n        - AnimalPlanet.dk\n        - fox9knin.us\n    - name: add xmltv to tv\n      command: add\n      store: tv\n      add_store: xmltv\n    - name: save tv file\n      command: savexml\n      file: /tmp/new_tv.xml\n      store: tv\n    - name: save sql\n      command: savesql\n      sqlconnect: /tmp/new_tv.db\n      store: tv\n\nCommands explained\n~~~~~~~~~~~~~~~~~~\n\n.. _`analyse-programs`:\n\nanalyse-program\n***************\n\nThis functions will read a xmltv file and give a list of all channels with a per channel a start and stop time.\n\nAs options you have:\n\n- --xmltv-file <xmltv_file_to_read>    or use environt varialbe   fhs_xmltv_file\n- --force-color                        force use of color in output (for example to save to file)\n- --no-color                           use no color in output\n\nSee help output of command with --help\n\n.. code-block:: bash\n\n fhs-xmltv-tools analyse-programs --help | cat\n                                                                                                                                                                                    \n Usage: fhs-xmltv-tools analyse-programs [OPTIONS]                                                                                                                                  \n                                                                                                                                                                                    \n Analyse channels xml.                                                                                                                                                              \n Args:     force_color: force color in pipeline for example     xmltv_file: xmltv file to use                                                                                       \n                                                                                                                                                                                    \n \u256d\u2500 Options \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\n \u2502 *  --xmltv-file                   TEXT  read xmltv file [env var: fhs_xmltv_file] [default: None] [required]                                                                     \u2502\n \u2502    --force-color    --no-color          force color in pipelines [default: no-color]                                                                                             \u2502\n \u2502    --help                               Show this message and exit.                                                                                                              \u2502\n \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\n\nExample usage\n\n.. code-block:: bash\n\n  # download a tvguide for example us\n  wget -4 https://iptv-org.github.io/epg/guides/us/tvguide.com.epg.xml.gz -O - | gzip -d >tvguide.com.epg.xml\n\n  fhs-xmltv-tools analyse-programs --xmltv-file tvguide.com.epg.xml\n  \n  \u250f\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2533\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2533\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2533\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2513\n  \u2503 Id                            \u2503 start time           \u2503 end time             \u2503 programs \u2503\n  \u2521\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2547\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2547\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2547\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2529\n  \u2502 ABCEast.us                    \u2502 20221006000000 +0000 \u2502 20221008000000 +0000 \u2502       38 \u2502\n  \u2502 AEEast.us                     \u2502 20221006000000 +0000 \u2502 20221008000000 +0000 \u2502       54 \u2502\n  \u2502 AMCEast.us                    \u2502 20221006000000 +0000 \u2502 20221008020000 +0000 \u2502       39 \u2502\n  \u2502 AnimalPlanetEast.us           \u2502 20221006000000 +0000 \u2502 20221008000000 +0000 \u2502       48 \u2502\n  \u2502 BBCAmericaEast.us             \u2502 20221006000000 +0000 \u2502 20221008010000 +0000 \u2502       35 \u2502\n  \u2502 BETEast.us                    \u2502 20221006000000 +0000 \u2502 20221008000000 +0000 \u2502       69 \u2502\n  \n\n  .. _`list-channels`:\n\n\nlist-channels\n*************\n  \nThis functions will read a xmltv file and give a list of all channels with a per channel a index, id and channel name\n\nAs options you have:\n\n- --xmltv-file <xmltv_file_to_read>    or use environt varialbe   fhs_xmltv_file\n- --force-color                        force use of color in output (for example to save to file)\n- --no-color                           use no color in output\n- --ignore-empty-id                    don't display channels without a id\n\nExample usage\n\n.. code-block:: bash\n\n  # download a tvguide for example us\n  wget -4 https://iptv-org.github.io/epg/guides/us/tvguide.com.epg.xml.gz -O - | gzip -d >tvguide.com.epg.xml\n\n  fhs-xmltv-tools list-channels --xmltv-file tvguide.com.epg.xml\n  \u250f\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2533\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2533\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2513\n  \u2503 Index \u2503 Id                            \u2503 Channel                      \u2503\n  \u2521\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2547\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2547\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2529\n  \u2502     1 \u2502 ABCEast.us                    \u2502 ABC East                     \u2502\n  \u2502     2 \u2502 AEEast.us                     \u2502 A&E East                     \u2502\n  \u2502     3 \u2502 AMCEast.us                    \u2502 AMC East                     \u2502\n  \u2502     4 \u2502 AnimalPlanetEast.us           \u2502 Animal Planet East           \u2502\n  \u2502     5 \u2502 BBCAmericaEast.us             \u2502 BBC America East             \u2502\n  \u2502     6 \u2502 BETEast.us                    \u2502 BET East                     \u2502\n  \u2502     7 \u2502 BravoEast.us                  \u2502 Bravo East                   \u2502\n\n\n  .. _`channel-details`:\n\n\nchannel-details\n***************\n  \nList the channel info from a xmltv file\n\nAs options you have:\n\n- --xmltv-file <xmltv_file_to_read>    or use environt varialbe   fhs_xmltv_file\n- --index <indexnr>                    display the channel with index nr, see output of `list-channels`_\n- --channelid                          display the channel with channel id, see output of `list-channels`_\n\n\n\nExample usage\n\n.. code-block:: bash\n\n  # download a tvguide for example us\n  wget -4 https://iptv-org.github.io/epg/guides/us/tvguide.com.epg.xml.gz -O - | gzip -d >tvguide.com.epg.xml\n\n  fhs-xmltv-tools channel-details --xmltv-file tvguide.com.epg.xml --index 1\n  Channel(display_name=[DisplayName(content=['ABC East'], lang=None)],\n        icon=[Icon(src='https://upload.wikimedia.org/wikipedia/commons/thumb/2/2f/ABC-2021-LOGO.svg/512px-ABC-2021-LOGO.svg.png',\n                   width=None,\n                   height=None)],\n        url=['https://tvguide.com'],\n        id='ABCEast.us')\n\n.. _`join-xml-files`:\n\njoin-xml-files\n**************\n\nJoin 2 xml files to one xml file.\n\nAs options you have\n\n.. code-block:: bash\n\n  fhs-xmltv-tools join-xml-files --help\n                                                                                                           \n  Usage: fhs-xmltv-tools join-xml-files [OPTIONS]                                                           \n                                                                                                           \n   Join 2 xml files and write them out as 1 xml.                                                             \n   Args:     xmltv_file: xmltv file to use     xmltv_file_add: xmltv file to use     xmltv_out: write xmltv  \n   file     force_color: force color in pipeline for example                                                 \n                                                                                                           \n  \u256d\u2500 Options \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\n  \u2502 *  --xmltv-file                      TEXT  read xmltv file [env var: fhs_xmltv_file] [default: None]    \u2502\n  \u2502                                            [required]                                                   \u2502\n  \u2502 *  --xmltv-file-add                  TEXT  read xmltv file [env var: fhs_xmltv_file] [default: None]    \u2502\n  \u2502                                            [required]                                                   \u2502\n  \u2502 *  --xmltv-out                       TEXT  write xmltv file [env var: fhs_xmltv_out] [default: None]    \u2502\n  \u2502                                            [required]                                                   \u2502\n  \u2502    --force-color       --no-color          force color in pipelines [default: no-color]                 \u2502\n  \u2502    --help                                  Show this message and exit.                                  \u2502\n  \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\n\nAs a example\n\n.. code-block:: bash\n\n # download a tvguide for example us\n wget -4 https://iptv-org.github.io/epg/guides/us/tvguide.com.epg.xml.gz -O - | gzip -d >tvguide.com.epg.xml\n wget -4 https://iptv-org.github.io/epg/guides/yt/canalplus-reunion.com.epg.xml.gz -O - | gzip -d >canalplus-reunion.com.epg.xml\n  \n fhs-xmltv-tools join-xml-files --xmltv-file tvguide.com.epg.xml --xmltv-file-add canalplus-reunion.com.epg.xml --xmltv-out out.xml\n \n.. _`search-program`:\n \nsearch-program\n************** \n\nSearch a program in a xmltv-file\n\n.. code-block:: bash\n\n fhs-xmltv-tools search-program --help\n                                                                                                           \n Usage: fhs-xmltv-tools search-program [OPTIONS]                                                           \n                                                                                                           \n Search program in xml.                                                                                    \n Args:     search: string or regex to search     force_color: force color in pipeline for example          \n force_case: normal search is case insensitive but with this option force case sensitive     xmltv_file:   \n xmltv file to use                                                                                         \n                                                                                                           \n\u256d\u2500 Options \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\n\u2502 *  --search                                TEXT  regex search [default: None] [required]                \u2502\n\u2502 *  --xmltv-file                            TEXT  read xmltv file [env var: fhs_xmltv_file]              \u2502\n\u2502                                                  [default: None] [required]                             \u2502\n\u2502    --force-color             --no-color          force color in pipelines [default: no-color]           \u2502\n\u2502    --force-case-sensitive                                                                               \u2502\n\u2502    --help                                        Show this message and exit.                            \u2502\n\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\n\n.. _`write-xmlfile-channels`:\n\nwrite-xmlfile-channels\n**********************\n\nCleanup xmltv file by only writing the channels to a new files that you listed in a file.\n\n.. code-block:: bash\n\n fhs-xmltv-tools write-xmlfile-channels --help                                                                                                           \n Usage: fhs-xmltv-tools write-xmlfile-channels [OPTIONS] CHANNEL_FILE                                      \n                                                                                                           \n Write xmlfile with only used channels to xml.                                                             \n Args:     channel_file: file with channels one per line     xmltv_file: xmltv file to use     xmltv_out:  \n write xmltv file     force_color: force color in pipeline for example                                     \n                                                                                                           \n \u256d\u2500 Arguments \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\n \u2502 *    channel_file      TEXT  [default: None] [required]                                                 \u2502\n \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\n \u256d\u2500 Options \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\n \u2502 *  --xmltv-file                   TEXT  read xmltv file [env var: fhs_xmltv_file] [default: None]       \u2502\n \u2502                                         [required]                                                      \u2502\n \u2502 *  --xmltv-out                    TEXT  write xmltv file [env var: fhs_xmltv_out] [default: None]       \u2502\n \u2502                                         [required]                                                      \u2502\n \u2502    --force-color    --no-color          force color in pipelines [default: no-color]                    \u2502\n \u2502    --help                               Show this message and exit.                                     \u2502\n \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\n\nchannel_file is a text one with one channel id on every line\n\n.. _`run-tasks`:\n\nrun-tasks\n*********\n\nRunning all the automation you want for xmltv files, task for task using a \n\nUsage:\n\n.. code-block:: bash\n\n fhs-xmltv-tools run-tasks --help\n                                                                                                                              \n Usage: fhs-xmltv-tools run-tasks [OPTIONS]                                                                                   \n                                                                                                                              \n Run tasks in yaml file.                                                                                                      \n Args:     yaml_command: xmltv file to use     force_color: force color in pipeline for example     include_tag: tags from    \n task to include     exclude_tag: exclude tasks with this tag                                                                 \n                                                                                                                              \n \u256d\u2500 Options \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\n \u2502 *  --yaml-command                  TEXT  read yaml file [env var: fhs_xmltv_yaml] [default: None] [required]               \u2502\n \u2502    --force-color     --no-color          force color in pipelines [default: no-color]                                      \u2502\n \u2502    --include-tag                   TEXT  [default: None]                                                                   \u2502\n \u2502    --exclude-tag                   TEXT  [default: None]                                                                   \u2502\n \u2502    --help                                Show this message and exit.                                                       \u2502\n \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\n\n\n.. _`xmltv-to-sql`:\n\nsave-xmlfile-to-sql\n********************\n\nWrite the program data to a sql locaton (like sqlite), that way you can search in programs\nfor longer times, the search options will come soon.\n\n.. code-block:: bash\n\n fhs-xmltv-tools xmltv-to-sql --help                                                                                                           \n Usage: fhs-xmltv-tools xmltv-to-sql [OPTIONS]\n\n Xmltv to sql (using sqlalchemy).\n Args:     force_color: force color in pipeline for example     xmltv_file: xmltv file to use\n sqltype: sqltype type sqlite or sqlalchemy     sqlconnect: connect string, this is the filepath is\n using sqltype = sqlite\n\n \u256d\u2500 Options \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\n \u2502 *  --xmltv-file                   TEXT  read xmltv file [env var: fhs_xmltv_file] [default: None]     \u2502\n \u2502                                         [required]                                                    \u2502\n \u2502    --sqltype                      TEXT  sqltype for now, (default) sqlite or sqlalchemy               \u2502\n \u2502                                         [default: sqlite]                                             \u2502\n \u2502 *  --sqlconnect                   TEXT  sqlconnect how to connect. [default: None] [required]         \u2502\n \u2502    --force-color    --no-color          force color in pipelines [default: no-color]                  \u2502\n \u2502    --help                               Show this message and exit.                                   \u2502\n \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\n\n\nsqlconnect is the file name if using sqlite\n\n.. _`search-program-sql`:\n\nsearch-program-sql\n******************\n\nSearch a program in a sql datebase.\n\n\nYou can find a example yaml_ file in the source and also some extra documentation in the examples_ directory.\n\n.. _yaml: https://github.com/foxhunt72/fhs-xmltv-tools/raw/main/Examples/tasks_example.yml\n.. _examples: https://github.com/foxhunt72/fhs-xmltv-tools/tree/main/Examples\n\nRequirements\n^^^^^^^^^^^^\n- typer[all]\n- py-xmltv\n- pyyaml\n\n\n\n\nCompatibility\n-------------\n\n\nLicence\n-------\nMIT Licencse\n\nAuthors\n-------\nRichard de Vos\n\n`fhs_xmltv_tools` was written by `Richard de Vos <rdevos72@gmail.com>`_.\n",
    "bugtrack_url": null,
    "license": "MIT license",
    "summary": "xmltv tools",
    "version": "0.1.14",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "b49d587170274a108fb13e54c5605c6b",
                "sha256": "39d265b6e4a6fc20d270ee3b064e5344fea087795a6a5d4d2123e59b0ea1d20e"
            },
            "downloads": -1,
            "filename": "fhs-xmltv-tools-0.1.14.tar.gz",
            "has_sig": false,
            "md5_digest": "b49d587170274a108fb13e54c5605c6b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 28126,
            "upload_time": "2022-12-23T22:14:13",
            "upload_time_iso_8601": "2022-12-23T22:14:13.454072Z",
            "url": "https://files.pythonhosted.org/packages/f0/06/f532f8bc1063c1c3b86ca7725cfe98a4b4def59449fea3a01c93fb194e60/fhs-xmltv-tools-0.1.14.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-23 22:14:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "foxhunt72",
    "github_project": "fhs-xmltv-tools",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "tox": true,
    "lcname": "fhs-xmltv-tools"
}
        
Elapsed time: 0.02192s