Repository navigation
Releases
Releases · huseyincig/extto-torznab-proxy
v1.0.8 — Fixed Release Age Parsing & Automatic Sonarr/Radarr RSS Sync
What's Changed in v1.0.8
🐛 Fixed "0 minutes" Release Age Parsing (server.js)
- Real EXT
/browse/rows wrap cell labels inside<span class="add-block">Age</span><span title="14 November 2026">2 weeks</span>. PreviouslystripTags()produced"Age 2 weeks", which failed the relative-date regex and fell back toDate.now()("0 minutes"ago) for every release—breaking Sonarr/Radarr age display and Delay Profiles / Minimum Age rules. - Added label-aware
extractRowCell()(Size,Age,Seeds,Leechs, with positional<td>fallback) and upgradedparseDateToRfc822()to use sub-day relative precision (45 minutes,an hour ago,3 hours) for recent uploads and EXT's exact UTC calendar date (title="dd MMMM yyyy",DD.MM.YYYY) for multi-day/week/month/year uploads, plus compound ages (1 year, 2 months).
📡 Fixed Automatic Grabbing / RSS Sync in Sonarr, Radarr & Prowlarr (server.js)
- Empty-query RSS Sync requests from Radarr (
t=movie&cat=2000), Sonarr (t=tvsearch&cat=5000,cat=5070,cat=5000,5070), and Prowlarr (t=search) previously fell back toq=warm, causing automated RSS polling to return only old titles matching"warm"instead of newly uploaded releases. - Added
inferExtCatFromTorznabCat()andisRssSyncrouting so automatic RSS Sync fetches the newest uploads directly:- Movies RSS (
t=movie&cat=2000) →/browse/?cat=1&sort=age&order=desc - TV RSS (
t=tvsearch&cat=5000) →/browse/?cat=2&sort=age&order=desc - Anime RSS (
t=tvsearch&cat=5070) →/browse/?cat=7&sort=age&order=desc - Multi-category / Prowlarr RSS (
cat=5000,5070,cat=2000,5000,5070, or generict=search) →/browse/?age=0&sort=age&order=desc
- Movies RSS (
- Background
doWarm()continues to warm the session usingq=warm.
🔍 Category Filtering, Row-Level IMDb IDs & Magnet Resilience (server.js)
- Extended
categoryFromRow()to map/music/(3000),/applications/(4000),/games/(4050),/xxx/(6000),/books/(7020), and/other/(8000) sofilterItemsByCategory()drops non-video uploads during multi-category Movies/TV/Anime RSS Sync while preserving truly unclassified (7000) season-pack rows for Prowlarr. - Added
extractRowImdbId()to automatically extract<a href="...imdb_id=tt...">links directly from EXT browse/RSS rows for more accurate Sonarr/Radarr matching. - Added
extractDetailTokens()andextractAjaxMagnet()to support<meta name="csrf-token">fallback alongsidewindow.csrfToken,{ url: "magnet:?..." }AJAX responses alongsidejson.magnet, and inlinemagnet:?links on detail pages. - Aligned
doWarm()cache invalidation withbuildBrowsePath(q)and guarded the background idle session cleanup interval withtry/catch.
🧪 Verification
- 43 / 43 unit and regression tests passing (
npm test). - 6 / 6 live end-to-end acceptance checks verified against Prowlarr
v3.0.2.5780, Sonarrv4.0.20.3014, and Radarrv7.0.3.10918(including liveRssSync, realageMinutes/publishDatevalidation, non-video category filtering, and 3-format/download302magnet redirects).
Full Changelog: v1.0.7...v1.0.8
v1.0.7 — Custom EXT Filtering & Sorting Options + Web UI RSS Feed Builder
What's Changed in v1.0.7
📡 Torznab EXT Filtering & Sorting Options for qBittorrent RSS & Custom Clients (#5)
- Added
extractBrowseFilters()and extendedbuildBrowsePath(),fetchBrowse(), andhandleApi()to validate and forward native EXT/browse/filter and sort parameters directly from/api?t=searchrequests without requiring a search keywordq(no fallback toq=warmwhen filters are active):user_nick(alias:uploader): Filter uploads by EXT uploader nickname (e.g.PSA,QxR,MeGusta).sort: Sort results byage(aliases:created,date,time),seed(aliases:seeds,seeders),leech(aliases:leechs,leechers,peers),size,files, orcomments.order: Sort direction (descorasc; defaults todescwhensortis specified).age: Upload time window (0= Last 24 Hours,1= Last 3 Days,2= Last Week,3= Last 2 Weeks,4= Last Month).ext_cat(alias:site_cat, orcatwhen1..10): Native EXT site category ID (1= Movies,2= TV,3= Music,4= Games,5= Applications,6= Books,7= Anime,8= Other,10= XXX), while preserving standard Torznabcatfiltering (2000,5000,5070).sub_cat: Native EXT subcategory ID (1..999).page: Upstream/browse/page number (1..100).with_adult: Per-request adult content override (0/1orfalse/true) without altering global Prowlarr/Sonarr/Radarr settings.
🎛️ Interactive Web UI RSS & Filtered Feed URL Builder
- Added an interactive "RSS & Filtered Feed URL Builder (qBittorrent / RSS)" card to the Web UI (
http://YOUR_HOST_IP:8998/), localized across all 8 supported languages (en,tr,es,ru,pt,fr,de,pl— 117 keys per language) with live URL generation, one-click clipboard copy, and direct XML feed preview.
🙏 Acknowledgments
- Special thanks to @blowfish602 for proposing custom EXT filtering and sorting parameters for qBittorrent RSS feeds in #5.
🧪 Verification
- 39 / 39 automated unit and regression tests passing (
npm test), including inline Web UI<script>compilation verification viavm.Script.
Full Changelog: v1.0.6...v1.0.7
v1.0.6
What's Changed in v1.0.6
- Auto-Detected 8-Language Multilingual Web UI (
server.js): Expanded automatic browser language detection (navigator.languages/navigator.language,SUPPORTED_UI_LANGS,UI_I18N,resolveUiLang()) to support English (en), Turkish (tr), Spanish (es), Russian (ru), Portuguese (pt), French (fr), German (de), and Polish (pl) with 100% key parity across all 82 UI strings. - Prowlarr
{ImdbId:...}&q=tt...Token Extraction (server.js): AddedextractSearchInputs()to automatically extract IMDb IDs passed insideq({ImdbId:tt0903747},{ImdbId:903747}, ortt0903747) during Prowlarr manual searches and trigger the hybrid IMDb + title search pipeline while requiring thettprefix in free text so numeric titles (90210,1917) are never misclassified. - Native Docker Environment Variable Overrides (
server.js,examples/docker-compose.yml): AddedapplyEnvOverrides()directly inloadConfig()to supportFLARESOLVERR_URL(for FlareSolverr or compatible services such as Byparr),BASE_URL,PUBLIC_URL,SESSION_NAME, andAPI_KEYenvironment variables without requiring an external wrapper script. - Unsupported External ID Query Guard (
server.js): When a caller queries by an unsupported external ID parameter (tmdbid,tvdbid,tvmazeid,rid,traktid,doubanid) or byimdbidwhileenableImdbSearchis disabled—without a titleq—/apinow returns an empty Torznab<channel>immediately instead of falling back toq=warmand returning unrelated"warm"torrents. - HTML Parser, Date/Size & Reverse Proxy Hardening (
server.js):decodeEntities(): AddedsafeFromCodePoint()bounds checking (0..0x10FFFF, excluding UTF-16 surrogates0xD800..0xDFFF) and case-insensitive entity matching (/ /gi) so malformed numeric entities (�) never throwRangeError.parseSizeToBytes(): Differentiated thousands-separator commas (1,234.56 MB) from decimal commas (1,5 GB) and guarded againstNaNso<size>NaN</size>is never emitted.parseDateToRfc822(): Restricted the fallbacknew Date(text)parser to strings containing a 4-digit year (19xx/20xx) so bare numbers ("5","12") are never parsed by V8 as year2001.toRelativeTorrentPath(): Normalized absolute mirror URLs (https://ext.to/...) infindTorrentAnchor()andparseResults()to relative pathnames so cross-mirror links are never dropped.getPublicBaseUrl(): AddedX-Forwarded-Proto(https/http) andX-Forwarded-Hostsupport for reverse proxy deployments whenpublicUrlis empty./warm,/cache/clear,/session/reset&saveConfig(): Enabled bothGETandPOSTmethods on action endpoints, includedimdbTitleCachein cache eviction/clearing, cleared stale search cache onbaseUrl/publicUrlchanges, and stopped the warm timer immediately whenwarmEnabledis unchecked.
- GitHub Actions Buildx Caching (
.github/workflows/docker-image.yml,.github/workflows/docker-publish.yml): Addedcache-from: type=ghaandcache-to: type=gha,mode=maxto accelerate multi-arch container builds. - Verification: 37/37 unit & regression tests passing (
npm test).
Acknowledgments
Special thanks to @ryandash for the ideas around Prowlarr {ImdbId:...} / q=tt... query token handling, FLARESOLVERR_URL environment variable configuration for FlareSolverr-compatible endpoints (such as Byparr), and GitHub Actions Buildx caching!
v1.0.5
What's Changed in v1.0.5
- Hybrid IMDb + Title Search Architecture: When
imdbidis queried (t=tvsearchort=movie), combines primaryimdb_id=tt...results, season-only full-pack ("Season X Complete") lookups, and automatic IMDb title/year resolution (resolveImdbTitle, 24h cache) + text search fallback (mergeSearchItems), attaching<torznab:attr name="imdb">strictly to IMDb-verified rows. - Unclassified (
7000) Category Resolution for Prowlarr: AddedresolveItemCategories()and expandedcategoryFromRow()so rows without explicit/movies/,/tv/, or/anime/links are mapped to advertised categories (2000,5000,5070) instead of being dropped by Prowlarr'sReleaseSearchService.cs:222. - Web UI
enableImdbSearchToggle: Added persistent Enable IMDb ID search (imdbid) checkbox (trueby default) with Turkish/English localization. - Torznab Pagination (
offset&limit): Updated<limits max="100" default="100" />and addedpaginateItems()to prevent redundant multi-page fetch loops. - Season-to-Episode Token Upgrade & Daily Series (
YYYY.MM.DD): UpgradesSeason X/SxxinqtoSxxExxwhenepis provided, and formats daily episode queries (season=YYYY&ep=MM/DD) intoYYYY.MM.DD. - Codec, Audio Channel & Date Dot Preservation: Preserves dots in
5.1,7.1,2.0,DDP5.1,AAC2.0,DD+5.1,H.264,H.265, andYYYY.MM.DD. - Public Tracker Freeleech Attributes: Emits
downloadvolumefactor=0anduploadvolumefactor=1. - *Verified arr Stack Compatibility: Verified end-to-end against Prowlarr
v3.0.2.5780, Sonarrv4.0.20.3014, and Radarrv7.0.3.10918(29/29 tests passing).
v1.0.4
What's Changed
- IMDb ID Search Support (#3):
- Advertise
imdbidin/api?t=capsformovie-search(q,imdbid) andtv-search(q,season,ep,imdbid). - Normalize incoming
imdbid/imdb_idvalues (with or withoutttprefix, zero-padded to 7+ digits) and route upstream queries to/browse/?imdb_id=tt...(combined with normalizedq/SxxExxtokens when present, without falling back to thewarmquery whenqis empty). - Include both
<torznab:attr name="imdb" value="..." />and<torznab:attr name="imdbid" value="tt..." />in Torznab XML results for full Prowlarr, Sonarr, and Radarr compatibility. - Return standard Torznab error code
201(Incorrect parameter (imdbid)) on malformedimdbidvalues. - Added unit tests covering
normalizeImdbId,buildBrowsePath,torznabCapsXml,torznabResultsXml, and/apivalidation (21/21 passing).
- Advertise
v1.0.3
What's Changed
- Restrict advertised Torznab
/api?t=capscategories strictly to Movies (2000), TV (5000), and Anime (5070), matching the proxy's intended scope for Sonarr/Radarr/Prowlarr. - Includes all diagnostics, parser, concurrency, and validation improvements from
v1.0.2.
v1.0.2
What's Changed
- Diagnostics & Timeouts: Surface underlying network error causes (e.g.
ECONNREFUSED,ENOTFOUND) and target URL infsCall()/postMagnetDirect(), and addAbortSignal.timeout()to prevent indefinite queue hangs. - Parser & Torznab Fixes:
- Parse relative age strings (
2 hours,3 months ago,1 year, etc.) accurately inparseDateToRfc822(). - Parse comma-formatted seeder/leecher counts (
1,234). - Add missing category
7000(Other) to/api?t=capsand return valid Torznab XML errors from/apisearch endpoints. - Fix
&double-unescaping and add numeric entity decoding indecodeEntities(); strip invalid XML 1.0 control characters inxmlEscape().
- Parse relative age strings (
- Runtime & Concurrency:
- Respect
stripSeasonFromSearchsetting inbuildSearchQuery(). - Include
baseUrlin search cache keys, reset session readiness on URL/session changes, and reschedule the warm interval timer when settings are saved. - Use pending counters for
fsBusy/sessionBusy, lock/session/resetand idle session destruction, deduplicate concurrent/warmcalls, and retry once on empty HTML responses. - Harden
/downloadparameter validation,readBody()stream destruction on >1 MB payloads, andparseForm()numeric bounds.
- Respect
- Tests & Docs: Added comprehensive unit tests in
test/server.test.js(17/17 passing) and alignedREADME.mdandexamples/config.example.jsontov1.0.2.