Skip to content

Instantly share code, notes, and snippets.

View JediRhymeTrix's full-sized avatar
👾
Always looking for that "next level"...

Vedant Vohra JediRhymeTrix

👾
Always looking for that "next level"...
View GitHub Profile
@JediRhymeTrix
JediRhymeTrix / asin_fixer.py
Last active December 30, 2024 23:19
Calibre Kindle ASIN Fixer: Extracts ASINs from Calibre metadata, scrapes Amazon for Kindle variants, and updates .opf files (and calibre.db) to ensure Kindle Colorsoft loads book covers properly.
# ASIN Fixer for Kindle Colorsoft Cover Issues
#
# Since the new Kindle Colorsoft only loads book covers from Amazon servers, having the correct Kindle ASIN is crucial for covers to display properly.
# Calibre doesn’t always fetch the correct Kindle ASIN, which is the only way for the Kindle to download the cover.
# This tool extracts ASINs from Calibre `.opf` files, scrapes Amazon for Kindle variants, and updates the `.opf` files with the correct Kindle ASIN.
# Additionally, it reads from the Calibre database, updates book identifiers in the database based on the `.opf` files.
#
# How It Works:
# 1. Extract ASINs: Pulls existing ASINs from `.opf` files in your Calibre library.
# 2. Scrape Amazon: Uses Selenium to visit Amazon and scrape the correct Kindle ASIN.
@JediRhymeTrix
JediRhymeTrix / hosts.txt
Created February 20, 2018 15:51
MoAB - Mother of All Ad Blockers
0.0.0.0 localhost
0.0.0.0 localhost.localdomain
0.0.0.0 test
0.0.0.0 testing
0.0.0.0 0000mps.webpreview.dsl.net
0.0.0.0 0001.2waky.com
0.0.0.0 00037.accountant
0.0.0.0 00038.accountant
0.0.0.0 00039.accountant
0.0.0.0 00041.accountant
// hyper settings sync gist