Code Monkey home page Code Monkey logo

dizquetv-scripts's Introduction

dizqueTV-scripts

Scripts to automate dizqueTV tasks

Installation

  1. Clone this repo with git clone https://github.com/nwithan8/dizqueTV-scripts.git
  2. Enter dizqueTV-scripts directory
  3. Install dependencies with pip install -r requirements.txt
  4. Run a script with python <script_name>

All scripts are standalone, meaning (as long as dependencies are installed) any script can run regardless of where the file is located on your machine.

Use python <script_name> --help to see the script's help message.

Script descriptions

dizquetv-scripts's People

Contributors

jvonhoff avatar nwithan8 avatar wangxu94 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dizquetv-scripts's Issues

Docker issue

I am trying to do the requirements.txt portion of the setup but get the error: ERROR: Could not find a version that satisfies the requirement dizqueTV (from -r requirements.txt (line 1)) (from versions: none)
ERROR: No matching distribution found for dizqueTV (from -r requirements.txt (line 1))

I have tried with the main folder in the home section and in the opt section where my dizquetv container is located.

I am using Ubuntu 18.04

Add specific movie

Hi,

It would be really nice to have an option to add a specific movie,

I have a discord account which serves as a bot that streams movies 24 hours a day with dizquetv and I would like the user to send a command to add a movie to the dizqueTV channel.

Ex :

  • Commande discord bot choise movie
  • DizqueTV-scripts add the movie in specific chanel
  • Happy user ๐Ÿ˜

Thanks

Channel Numbers Ignored

File "make_blank_channels.py", line 42
print(f"Channel {number} already exists. Not going to overwrite it.")

Example input:
python make_blank_channels.py 1000 -t 1050

Schedule script error

$ python schedule_creator.py
Could not get any episodes to select for 00:00.
Could not get a program to schedule for 00:00.
Traceback (most recent call last):
File "schedule_creator.py", line 134, in
if channel.add_schedule(time_slots=time_slots, slots=[]):
File "C:\Python38\lib\site-packages\dizqueTV\decorators.py", line 19, in inner
return func(obj, **kwargs)
File "C:\Python38\lib\site-packages\dizqueTV\channels.py", line 797, in add_schedule
return self._dizque_instance._make_schedule(channel=self, schedule=schedule)
File "C:\Python38\lib\site-packages\dizqueTV\dizquetv.py", line 575, in _make_schedule
res = self._post(endpoint='/channel-tools/time-slots', data=data)
File "C:\Python38\lib\site-packages\dizqueTV\dizquetv.py", line 173, in post
return requests.post(url=url,
File "C:\Python38\lib\site-packages\dizqueTV\dizquetv_requests.py", line 35, in post
res = requests.post(url=url, json=data, headers=headers, timeout=timeout)
File "C:\Python38\lib\site-packages\requests\api.py", line 119, in post
return request('post', url, data=data, json=json, **kwargs)
File "C:\Python38\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Python38\lib\site-packages\requests\sessions.py", line 516, in request
prep = self.prepare_request(req)
File "C:\Python38\lib\site-packages\requests\sessions.py", line 449, in prepare_request
p.prepare(
File "C:\Python38\lib\site-packages\requests\models.py", line 317, in prepare
self.prepare_body(data, files, json)
File "C:\Python38\lib\site-packages\requests\models.py", line 467, in prepare_body
body = complexjson.dumps(json)
File "C:\Python38\lib\json_init
.py", line 231, in dumps
return _default_encoder.encode(obj)
File "C:\Python38\lib\json\encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "C:\Python38\lib\json\encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "C:\Python38\lib\json\encoder.py", line 179, in default
raise TypeError(f'Object of type {o.class.name} '
TypeError: Object of type type is not JSON serializable

Genre to Channel similar to Playlist to Channel

In Plex my videos are tagged with their genres. When adding programming into dizqueTV channels, dizqueTV shows these genres and allows you to import all of these videos.

As I have many channels, I'd like to automate this process when refreshing my content. Does dizqueTV-scripts have the ability to add genres to channels, similar to the playlist_to_channel.py script? If not, how involved would modifying that script to support genres be?

I'd like to avoid the process of creating smart playlists in Plex based on genres. Videos are automatically imported into Plex with their genres and creating smart playlists, even if a one time process per genre, would be a workaround for interacting with the videos.

Schedule Creator not working

Trying to run schedule_creator.py and getting this error:

ModuleNotFoundError: No module named 'dizqueTV.channels'

I realize there isn't a 'channels.py' file in the 'site-packages\dizqueTV' folder, and schedule_creator.py isn't listed in the README. Is this script deprecated?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.