Skip to content

Instantly share code, notes, and snippets.

[09:03:46] INFO: Starting Web Terminal...
[09:03:46] WARNING: SSH port is disabled. Prevent start of SSH server.
[2021/11/05 09:03:46:9957] N: ttyd 1.6.3-3b174da (libwebsockets 4.1.4-v4.1.4)
[2021/11/05 09:03:46:9962] N: tty configuration:
[2021/11/05 09:03:46:9963] N: start command: tmux -u new -A -s homeassistant bash -l
[2021/11/05 09:03:46:9963] N: close signal: SIGHUP (1)
[2021/11/05 09:03:46:9963] N: terminal type: xterm-256color
[2021/11/05 09:03:46:9963] N: LWS: 4.1.4-v4.1.4, loglevel 7
[2021/11/05 09:03:46:9964] N: NET CLI SRV H1 H2 WS IPV6-off
[2021/11/05 09:03:47:0002] N: /usr/lib/libwebsockets-evlib_uv.so
@p0psicles
p0psicles / py
Last active December 12, 2020 08:29
bitwize_class.py
from enum import Enum
class ConstsBitwize(object):
"""
Client status helper class.
For CONSTANTS attach an Enum().
For example:
```
class ClientStatusEnum(Enum):
# coding=utf-8
from __future__ import unicode_literals
import logging
from collections import OrderedDict
from time import time
from medusa.indexers.base import (Actor, Actors, BaseIndexer)
from medusa.indexers.exceptions import (
# coding=utf-8
"""Request handler for internal data."""
from __future__ import unicode_literals
import logging
import os
import re
from medusa import app, classes, db
from medusa.helper.common import sanitize_filename, try_int
28:07 INFO POSTPROCESSOR :: [d9c31da] Post-processing completed.
2020-06-18 21:28:07 DEBUG POSTPROCESSOR :: [d9c31da] No processable items found in folder: /home/medusa
2020-06-18 21:28:07 DEBUG POSTPROCESSOR :: [d9c31da] Processing path: /home/medusa
2020-06-18 21:28:07 DEBUG POSTPROCESSOR :: [d9c31da] Starting new thread: POSTPROCESSOR
2020-06-18 21:27:58 DEBUG CHECKVERSION :: [d9c31da] User-Agent: Medusa/0.3.16 (Linux; 4.15.0-106-generic; ebc4ca74-b145-11ea-b024-0050563f89c3)
2020-06-18 21:27:58 DEBUG CHECKVERSION :: [d9c31da] GET URL: https://cdn.pymedusa.com/news/news.md [Status: 200]
2020-06-18 21:27:58 DEBUG CHECKVERSION :: [d9c31da] Checking GitHub for latest news.
2020-06-18 21:27:58 DEBUG CHECKVERSION :: [d9c31da] cur_commit = d9c31da063e6c4b4383749e19b27b13693a1b71e, newest_commit = d9c31da063e6c4b4383749e19b27b13693a1b71e, num_commits_behind = 0, num_commits_ahead = 0
2020-06-18 21:27:58 DEBUG CHECKVERSION :: [d9c31da] git rev-list --left-right "@{upstream}"...HEAD : returned successful
2020-06-18
2019-11-24 19:50:08 DEBUG Thread-71 :: [7bf9a13] Processing path: /media/bigdisk/Complete/Anime/[HorribleSubs].Vinland.Saga-19.[1080p]
2019-11-24 19:50:08 DEBUG Thread-71 :: [7bf9a13] Processing folder: /srv/dev-disk-by-label-3TBJBOD/Complete/Anime/[HorribleSubs].Vinland.Saga-19.[1080p]
2019-11-24 19:50:08 DEBUG Thread-71 :: [7bf9a13] Post-processing files: ['[HorribleSubs] Vinland Saga - 19 [1080p].mkv']
2019-11-24 19:50:08 DEBUG Thread-71 :: [7bf9a13] Post-processing video files: ['[HorribleSubs] Vinland Saga - 19 [1080p].mkv']
2019-11-24 19:50:08 INFO Thread-71 :: [7bf9a13] Processing /srv/dev-disk-by-label-3TBJBOD/Complete/Anime/[HorribleSubs].Vinland.Saga-19.[1080p]/[HorribleSubs] Vinland Saga - 19 [1080p].mkv
2019-11-24 19:50:08 DEBUG Thread-71 :: [7bf9a13] Analyzing name: [HorribleSubs] Vinland Saga - 19 [1080p].mkv
2019-11-24 19:50:08 DEBUG Thread-71 :: [7bf9a13] Using cached parse result for [HorribleSubs] Vinland Saga - 19 [1080p].mkv
2019-11-24 19:50:08 DEBUG Thread-71 :: [
# coding=utf-8
# Author: Nic Wolfe <nic@wolfeden.ca>
#
# This file is part of Medusa.
#
# Medusa is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
{
"links": {
"first": 1,
"last": 1,
"next": null,
"prev": null
},
"data": [
{
"id": 6427205,
ErrorWarningSystemArrayLogin
2018-08-22 11:51:25 DEBUG MAIN :: [f5973b2] 74764: Finding the episode which airs next
2018-08-22 11:51:25 DEBUG MAIN :: [f5973b2] 74764: No episode found... need to implement a show status
2018-08-22 11:51:25 DEBUG MAIN :: [f5973b2] 75758: Loading show info from database
2018-08-22 11:51:25 DEBUG MAIN :: [f5973b2] Building black and white list for Lost in Space
2018-08-22 11:51:25 DEBUG MAIN :: [f5973b2] 75758: Finding the episode which airs next
2018-08-22 11:51:25 DEBUG MAIN :: [f5973b2] 75758: No episode found... need to implement a show status
2018-08-22 11:51:25 DEBUG MAIN :: [f5973b2] 75782: Loading show info from database
2018-08-22 11:51:25 DEBUG MAIN :: [f5973b2] Building black and white list for One Strange Rock
2018-08-22 11:51:25 DEBUG MAIN :: [f5973b2] 75782: Finding the episode which airs next
@p0psicles
p0psicles / garo-vanishing-line
Created November 2, 2017 14:13
Error guessit parsing show garo vanishing line
2017-11-02 15:06:25 DEBUG MAIN :: [dea3fe4] Matched release Show.Name.S02E03.HDTV.x264-RLSGROUP to a series in your database: Show Name
2017-11-02 15:06:25 DEBUG MAIN :: [dea3fe4] Parsed Show.Name.S02E03.HDTV.x264-RLSGROUP into title: Show Name, season: 2, episode: [3], format: HDTV, video_codec: h264, video_encoder: x264, release_group: RLSGROUP, type: episode, parsing_time: 0.115000009537, total_time: 0.115000009537, absolute_episode: [], quality: SDTV
2017-11-02 15:06:25 DEBUG MAIN :: [dea3fe4] Found codec for Show Name Ep Name
2017-11-02 15:06:25 DEBUG MAIN :: [dea3fe4] 1: Episode has no release group, replacing it with RLSGROUP
2017-11-02 15:06:25 DEBUG MAIN :: [dea3fe4] 1: Formatting pattern: %SN - S%0SE%0E - %EN -> Show Name - S02E03 - Ep Name
2017-11-02 15:06:25 DEBUG MAIN :: [dea3fe4] Matched release Show.Name.S02E03.HDTV.x264-RLSGROUP to a series in your database: Show Name
2017-11-02 15:06:25 DEBUG MAIN :: [dea3fe4] Parsed Show.Name.S02E03.HDTV.x264-RLSGROUP into title: Show Na