Skip to content

Commit

Permalink
run pre-commits
Browse files Browse the repository at this point in the history
  • Loading branch information
bullmoose20 committed Jan 24, 2025
1 parent 88791ea commit 5922e50
Show file tree
Hide file tree
Showing 52 changed files with 51 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ logs/
012*-*.js
013*-*.js
014*-*.js
#
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ repos:
rev: v17.1.2
hooks:
- id: standard
#
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

FROM python:3-alpine

# Create app directory
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

### WIP, not fully functional

![image](./static/images/header.png)
Expand Down
1 change: 1 addition & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from flask_session import Session
from cachelib.file import FileSystemCache


import jsonschema
import requests
import io
Expand Down
1 change: 1 addition & 0 deletions json-schema/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

JSON schemas for Kometa YAML files

How to:
Expand Down
1 change: 1 addition & 0 deletions json-schema/config-schema.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{
"$schema": "http://json-schema.org/draft-06/schema#",
"properties": {
Expand Down
1 change: 1 addition & 0 deletions json-schema/prototype_config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@


# yaml-language-server: $schema=./config-schema.json

libraries:
Expand Down
Empty file removed modules/plex.py
Empty file.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

Flask
Flask-Session
gunicorn
Expand Down
1 change: 1 addition & 0 deletions static/css/bootstrap.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions static/css/styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/* -------------------- */
/* GENERAL STYLES */
/* -------------------- */
Expand Down
1 change: 1 addition & 0 deletions static/js/bootstrap.bundle.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/*!
* Bootstrap v5.3.3 (https://getbootstrap.com/)
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
Expand Down
1 change: 1 addition & 0 deletions templates/000-base.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">
<head>
Expand Down
1 change: 1 addition & 0 deletions templates/001-start.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="configForm" name="configForm">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/010-plex.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="configForm" name="configForm">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/020-tmdb.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="configForm" name="configForm">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/025-libraries.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="configForm" name="configForm">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/027-playlist_files.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="configForm" name="configForm">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/030-tautulli.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="configForm" name="configForm">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/040-github.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="configForm" name="configForm">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/050-omdb.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="configForm" name="configForm">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/060-mdblist.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="configForm" name="configForm">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/070-notifiarr.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="configForm" name="configForm">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/080-gotify.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="configForm" name="configForm">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/090-webhooks.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="configForm" name="configForm">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/100-anidb.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="configForm" name="configForm">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/110-radarr.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="configForm" name="configForm">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/120-sonarr.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="configForm" name="configForm">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/130-trakt.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="configForm" name="configForm">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/140-mal.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="configForm" name="configForm">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/150-settings.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="configForm" name="configForm" onsubmit="return validateForm()">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/900-final.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{% extends "000-base.html" %} {% block content %}
<form method="post" id="final-form">
<div id="{{page_info['title']}}Section">
Expand Down
1 change: 1 addition & 0 deletions templates/modals/001-start.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<div class="alert alert-info" role="alert">
<a href="#" data-bs-toggle="modal" data-bs-target="#exampleModal">Click Here</a> if you need guidance.
</div>
Expand Down
3 changes: 1 addition & 2 deletions templates/modals/010-plex.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

<div class="alert alert-danger" role="alert">
<h6><b>This section is mandatory and must be completed</b></h6>
Enter your Plex URL/Token and press "Validate" to continue.
<br><br><a href="https://kometa.wiki/en/latest/config/plex/" target="_blank">Click Here</a> to go to the Kometa wiki for this connector.
</div>


1 change: 1 addition & 0 deletions templates/modals/020-tmdb.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<div class="alert alert-danger" role="alert">
<h6><b>This section is mandatory and must be completed</b></h6>
Enter your TMDb API Key and press "Validate" to continue.
Expand Down
1 change: 1 addition & 0 deletions templates/modals/025-libraries.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<div class="alert alert-danger" role="alert">
<h6><b>This section is mandatory and must be completed</b></h6>
Select the libraries you would like to use Kometa on, and select which Defaults you would like to apply.
Expand Down
1 change: 1 addition & 0 deletions templates/modals/027-playlist_files.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<div class="alert alert-info" role="alert">
<h6><b>This section is optional</b></h6>
Select which libraries you would like to include content from to use with the Defaults Playlist files.
Expand Down
1 change: 1 addition & 0 deletions templates/modals/030-tautulli.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<div class="alert alert-info" role="alert">
<h6><b>This section is optional</b></h6>
Enter your Tautulli URL and API Key and press "Validate".
Expand Down
1 change: 1 addition & 0 deletions templates/modals/040-github.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<div class="alert alert-info" role="alert">
<h6><b>This section is optional</b></h6>
Enter your GitHub Personal Access Token and press "Validate".
Expand Down
1 change: 1 addition & 0 deletions templates/modals/050-omdb.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<div class="alert alert-info" role="alert">
<h6><b>This section is optional</b></h6>
Enter your OMDb API Key and press "Validate".
Expand Down
1 change: 1 addition & 0 deletions templates/modals/060-mdblist.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<div class="alert alert-info" role="alert">
<h6><b>This section is optional</b></h6>
Enter your MDBList API Key and press "Validate".
Expand Down
1 change: 1 addition & 0 deletions templates/modals/070-notifiarr.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<div class="alert alert-info" role="alert">
<h6><b>This section is optional</b></h6>
Enter your Notifiarr API Key and press "Validate".
Expand Down
1 change: 1 addition & 0 deletions templates/modals/080-gotify.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<div class="alert alert-info" role="alert">
<h6><b>This section is optional</b></h6>
Enter your Gotify URL/API Key and press "Validate".
Expand Down
1 change: 1 addition & 0 deletions templates/modals/090-webhooks.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<div class="alert alert-info" role="alert">
<h6><b>This section is optional</b></h6>
Enter your preferred client for each webhook.
Expand Down
1 change: 1 addition & 0 deletions templates/modals/100-anidb.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<div class="alert alert-info" role="alert">
<h6><b>This section is optional</b></h6>
Enter your AniDB Client/Username/Password and press "Validate".
Expand Down
1 change: 1 addition & 0 deletions templates/modals/110-radarr.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<div class="alert alert-info" role="alert">
<h6><b>This section is optional</b></h6>
Enter your Radarr URL/Token and press "Validate", then complete the rest of the form.
Expand Down
1 change: 1 addition & 0 deletions templates/modals/120-sonarr.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<div class="alert alert-info" role="alert">
<h6><b>This section is optional</b></h6>
Enter your Sonarr URL/Token and press "Validate", then complete the rest of the form.
Expand Down
1 change: 1 addition & 0 deletions templates/modals/130-trakt.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<div class="alert alert-info" role="alert">
<h6><b>This section is optional</b></h6>
Enter your Trakt Client ID/Client Secret and press "Retrieve PIN" which will take you to Trakt to complete authorization. Copy the PIN and paste it into the form, then press "Validate PIN".
Expand Down
1 change: 1 addition & 0 deletions templates/modals/140-mal.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<div class="alert alert-info" role="alert">
<h6><b>This section is optional</b></h6>
Enter your MyAnimeList Client ID/Client Secret and press "Authorize" which will take you to MyAnimeList to complete authorization. <b>you will be taken to a localhost page which does not load. Copy that URL</b> and paste it into the form and then press "Complete Authentication".
Expand Down
1 change: 1 addition & 0 deletions templates/modals/150-settings.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<div class="alert alert-danger" role="alert">
<h6><b>This section is mandatory</b></h6>
Go through each section and change any settings you need to.
Expand Down
2 changes: 1 addition & 1 deletion templates/modals/900-final.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- File: modals/900-final.html -->

<div class="alert alert-info" role="alert">
Congratulations! You made it to the final step. Whats next?<br>
<a href="#" data-bs-toggle="modal" data-bs-target="#exampleModal">Click Here</a> for more information.
Expand Down

0 comments on commit 5922e50

Please sign in to comment.