Metadata-Version: 2.4
Name: trytond_mediaserver
Version: 8.0.0
Summary: Media Server
Author: Clemens Hupka
Maintainer-email: Clemens Hupka <clemens.hupka@backend.at>
License-Expression: GPL-3.0-or-later
License-File: COPYRIGHT
License-File: LICENSE
Keywords: audio,media,server,tryton,video
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Plugins
Classifier: Framework :: Tryton
Classifier: Topic :: Multimedia :: Sound/Audio
Classifier: Topic :: Multimedia :: Video
Requires-Python: >=3.10
Requires-Dist: pyyaml
Requires-Dist: trytond<8.1,>=8.0
Provides-Extra: test
Description-Content-Type: text/x-rst

Documentation
#############

Configuration
-------------

To make this work, you need to add the following to your trytond.conf:

.. code-block:: ini

    [mediaserver]
    # The folder where the system looks for new files to import
    media_dir = /path/to/your/watch/folder
    # The root folder where the system stores the organized files
    storage_dir = /path/to/your/storage/folder

YAML data example
-----------------

YAML Metadata Example

If you place a file named MyMovie.mp4 in the watch folder, you can place a MyMovie.yaml next to it:

.. code-block:: yaml

    title: "My Awesome Movie"
    description: "A movie about awesome things."
    duration: 5400.5
    resolution: "1920x1080"
    video_codec: "h264"
    audio_codec: "aac"
    cast: "John Doe, Jane Smith"
    director: "Director Name"
    studio: "Studio Name"
    year: 2023
    genre: "Sci-Fi"

AI Information
##############

Base is AI Generated with the following prompt:

.. code-block:: prompt

    Write a Tryton 8.0 module mediaserver that permits to manage videos and audiofiles in a specific folder on a server.
    Each video should have an ID, title, description, a list of keywords as a many2many relation, a category as many2one,
    a license (a list of the most common video licenses should be present), a source type as a many2one relation (with the
    most common video sources and their URLs like Bluray, DVD, VHS, Tape, Youtube, European Broadcast Media portals like
    Arte, ARD, France.tv and others predefined via xml-records), an integer of allowed concurrent plays (0 means unlimited),
    can be deactivated, and fields for all common extracted video information (like resolution, codecs, duration, etc.) as
    well as the most common movie informations like cast, director, studio, etc. There should also be a history for every
    change made for the video record.

    The module should also schedule to check the video folder configured in the trytond.conf regularly for new files,
    import them and move them into its own folder tree using sublevels based on the original file hash. It should parse a
    yaml file with the same name as the video file where some optional metadata resides.

