Skip to content

Instantly share code, notes, and snippets.

@maforget
maforget / Proposed Values.py
Created October 11, 2023 02:38
Fixed Proposed Values Script for ComicRack
'''
Description: This script is to filter out any comics with proposed values
as requested by shpanky of the ComicRack forums.
Author: Stonepaw (also known as Atchu), v0.3 by maforget
Version:
0.3
Copyright: This work is not copyrighted. Feel free to use and modify any or all of it.
@maforget
maforget / AddedLastHours.py
Created August 29, 2023 19:35
UserScript SmartList - Returns the books added in the last (x) hours
from System import DateTime
#@Name Books Added the Last (x) Hours
#@Hook CreateBookList
#@PCount 1
#@Enabled false
#@Description Books Added the Last (x) Hours
def GetBooksWith (books, a, b):
newList = []
for book in books:
@maforget
maforget / CreateCBL.py
Last active September 7, 2024 20:19
Create CBL from a Text File
import re;
import os;
with open('sorting.txt') as f:
lines = f.readlines()
with open('template.cbl') as f:
cbl = f.read()
for l in lines:
@maforget
maforget / FindImageResolution.py
Last active January 27, 2023 10:21
Plugin for ComicRack to find the image resolution from a comic
import clr
import System
clr.AddReference("System.Windows.Forms")
from System.Windows.Forms import MessageBox
#@Name Find Image Resolution
#@Key FindImageResolution
#@Hook Books
#@Enabled false
#@Description Find the resolution of the images
@maforget
maforget / fullscreen.py
Created January 4, 2021 04:48
Automate Fullscreen in ComicRack on Book Opening or Startup of the Application
#
# Sample handler for the opening a new book event
#
#@Name Open Book in Fullscreen
#@Key fullscreenBook
#@Hook BookOpened
#@Description Open Book in Fullscreen
def fullscreenBook(book):
ComicRack.ComicDisplay.FullScreen = True