tor-dl 1.0.16 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,237 +1,238 @@
1
- # tor-dl
2
-
3
- A CLI torrent search tool. Search across multiple sources, open .torrent in browser, or copy magnet links to clipboard.
4
-
5
- ## Quick Start
6
-
7
- ```bash
8
- # Run without installation (requires Node.js)
9
- npx tor-dl search "movie title"
10
-
11
- # Install globally for easy use
12
- npm install -g tor-dl
13
- tor-dl search "movie title"
14
-
15
- # Copy magnet link to clipboard
16
- tor-dl o 3
17
-
18
- # Show version
19
- tor-dl --version
20
- ```
21
-
22
- ## Commands
23
-
24
- ### search <query>
25
- Search for torrents across multiple sources.
26
-
27
- ```bash
28
- tor-dl search <query> [options]
29
- ```
30
-
31
- **Options:**
32
-
33
- | Flag | Description | Example |
34
- |------|-------------|---------|
35
- | `-c, --cat <category>` | Category to filter results | `all`, `movie`, `tv`, `anime`, `music`, `games`, `apps` |
36
- | `-s, --min-seeds <number>` | Minimum number of seeders | `100` |
37
- | `--max-seeds <number>` | Maximum number of seeders | `1000` |
38
- | `--min-size <size>` | Minimum file size | `500MB`, `1GB`, `2GB` |
39
- | `--max-size <size>` | Maximum file size | `5GB`, `10GB` |
40
- | `-o, --sort <field>` | Sort results by field | `seeds`, `size`, `date` |
41
- | `--order <order>` | Sort order | `asc` (low to high), `desc` (high to low) |
42
- | `-l, --limit <number>` | Maximum results to return | `10`, `50`, `100` |
43
- | `-S, --sources <sources>` | Sources to search (comma-separated) | `yts,thepiratebay,nyaa` |
44
-
45
- **Available Categories:**
46
- - `all` - Search all categories
47
- - `movie` - Movies
48
- - `tv` - TV shows
49
- - `anime` - Anime (mainly Nyaa)
50
- - `music` - Music
51
- - `games` - Games
52
- - `apps` - Applications
53
-
54
- ## Supported Sources
55
-
56
- | Source | Categories | Description |
57
- |--------|------------|-------------|
58
- | yts | movie | Movie torrents with direct .torrent download |
59
- | thepiratebay | all | General torrent search |
60
- | nyaa | anime, tv | Anime and Japanese media |
61
-
62
- **Examples:**
63
-
64
- ```bash
65
- # Basic search
66
- tor-dl search "Blade Runner 2049"
67
-
68
- # Search movies with minimum seeds
69
- tor-dl search "movie" --cat movie --min-seeds 100
70
-
71
- # Search with size limits
72
- tor-dl search "linux" --min-size 500MB --max-size 2GB
73
-
74
- # Search specific sources only
75
- tor-dl search "game" -S yts,thepiratebay
76
-
77
- # Sort by size (smallest first)
78
- tor-dl search "documentary" --sort size --order asc
79
-
80
- # Limit results to top 10
81
- tor-dl search "podcast" -l 10
82
- ```
83
-
84
- ### o <number>
85
- Copy .torrent URL or magnet link to clipboard for the selected result number.
86
-
87
- ```bash
88
- tor-dl o <number>
89
- ```
90
-
91
- After running a search, enter the result number to copy the link to your clipboard.
92
-
93
- **Example:**
94
- ```bash
95
- tor-dl search "python tutorial"
96
- # Results displayed...
97
- tor-dl o 5
98
- # Magnet link copied to clipboard!
99
- ```
100
-
101
- ### open <number>
102
- Same as `o` command - opens .torrent in browser or copies magnet link.
103
-
104
- ```bash
105
- tor-dl open <number>
106
- ```
107
-
108
- ### Options
109
-
110
- | Flag | Description |
111
- |------|-------------|
112
- | `-v, --version` | Show version number |
113
- | `-h, --help` | Show help information |
114
-
115
- ## Size Format
116
-
117
- Size can be specified in various formats:
118
- - `KB` - Kilobytes
119
- - `MB` - Megabytes
120
- - `GB` - Gigabytes
121
- - `TB` - Terabytes
122
-
123
- Examples: `500MB`, `1.5GB`, `2GB`
124
-
125
- ## Requirements
126
-
127
- - Node.js >= 18.0.0
128
- - npm
129
- - Transmission (optional, for Windows)
130
-
131
- ## Local Installation
132
-
133
- ```bash
134
- git clone https://github.com/eaeoz/tor-dl.git
135
- cd tor-dl
136
- npm install
137
- npm run build
138
- ```
139
-
140
- ## Using with Windows Command Prompt
141
-
142
- On Windows, if you add the tor-dl installation directory to your PATH environment variable, you can use it directly from the command line without needing to specify the full path each time.
143
-
144
- ### Adding to PATH on Windows
145
-
146
- 1. Press `Win + R`, type `sysdm.cpl`, and press Enter
147
- 2. Go to **Advanced** tab **Environment Variables**
148
- 3. Under "User variables" or "System variables", find **Path** and click **Edit**
149
- 4. Add the folder where `tor-dl` is installed (e.g., `C:\Users\YourName\AppData\Roaming\npm`)
150
- 5. Click **OK** and restart your command prompt
151
-
152
- ### Quick Search Batch Script
153
-
154
- Create a batch file (e.g., `search.bat`) in your PATH to quickly search for movies:
155
-
156
- ```batch
157
- @echo off
158
-
159
- if "%*"=="" (
160
- echo Please provide a movie name.
161
- exit /b
162
- )
163
-
164
- tor-dl search "%*" --min-size 700MB --max-size 3GB -s 5
165
- ```
166
-
167
- **Usage:**
168
- ```bash
169
- search scream 7
170
- ```
171
-
172
- ## Install Transmission (Windows)
173
-
174
- For Windows users, you can install Transmission client using winget:
175
-
176
- ```bash
177
- winget install Transmission.Transmission
178
- ```
179
-
180
- Or download directly from the official website:
181
-
182
- - **Windows**: [https://transmissionbt.com/download](https://transmissionbt.com/download)
183
-
184
- After installation, you can open magnet links directly in Transmission.
185
-
186
- ## Transfer to Mobile/Tablet/Apple TV
187
-
188
- After your download completes in Transmission, you can transfer the file directly to VLC on your mobile device, tablet, or Apple TV using WiFi transfer.
189
-
190
- - If devices in different subnets: To connect to devices on different networks, port forwarding or routing must be configured on the network device which placed between them
191
-
192
- ### Prerequisites
193
-
194
- 1. **Set a Static IP** on your mobile device/tablet/Apple TV to ensure the IP address doesn't change
195
- 2. Enable WiFi transfer on your device (VLC for iOS/Android has built-in WiFi transfer feature)
196
-
197
- ### Setting Static IP
198
-
199
- - **Mobile/Tablet**: Settings → WiFi → Long press your network → Modify Network → Set static IP
200
- - **Apple TV**: Settings → NetworkConfigure IP manually (or use DHCP with reserved IP on your router)
201
-
202
- ### Upload Script
203
-
204
- Place `upload.bat` in the same folder where you added to your search script mentioned above PATH (or any folder in your PATH):
205
-
206
- ```batch
207
- @echo off
208
- if "%~1"=="" (
209
- echo Usage: upload.bat "full\path\to\file.mp4"
210
- exit /b 1
211
- )
212
-
213
- set "FILE=%~1"
214
- set "REMOTE=http://192.168.1.222/upload.json"
215
-
216
- curl --progress-bar -F "file=@%FILE%" %REMOTE% -o NUL
217
- ```
218
-
219
- **Note:** Replace `192.168.1.222` with your device's actual IP address.
220
-
221
- ### Usage
222
-
223
- ```bash
224
- upload "C:\Users\YourName\Downloads\movie.mp4"
225
- ```
226
-
227
- ## Author
228
-
229
- Sedat ERGOZ [@eaeoz](https://github.com/eaeoz)
230
-
231
- ## License
232
-
233
- MIT License
234
-
235
- ## Disclaimer
236
-
1
+ # tor-dl
2
+
3
+ A CLI torrent search tool. Search across multiple sources, open .torrent in browser, or copy magnet links to clipboard.
4
+
5
+ ## Quick Start
6
+
7
+ ```bash
8
+ # Run without installation (requires Node.js)
9
+ npx tor-dl search "movie title"
10
+
11
+ # Install globally for easy use
12
+ npm install -g tor-dl
13
+ tor-dl search "movie title"
14
+
15
+ # Copy magnet link to clipboard
16
+ tor-dl o 3
17
+
18
+ # Show version
19
+ tor-dl --version
20
+ ```
21
+
22
+ ## Commands
23
+
24
+ ### search <query>
25
+ Search for torrents across multiple sources.
26
+
27
+ ```bash
28
+ tor-dl search <query> [options]
29
+ ```
30
+
31
+ **Options:**
32
+
33
+ | Flag | Description | Example |
34
+ |------|-------------|---------|
35
+ | `-c, --cat <category>` | Category to filter results | `all`, `movie`, `tv`, `anime`, `music`, `games`, `apps` |
36
+ | `-s, --min-seeds <number>` | Minimum number of seeders | `100` |
37
+ | `--max-seeds <number>` | Maximum number of seeders | `1000` |
38
+ | `--min-size <size>` | Minimum file size | `500MB`, `1GB`, `2GB` |
39
+ | `--max-size <size>` | Maximum file size | `5GB`, `10GB` |
40
+ | `-o, --sort <field>` | Sort results by field | `seeds`, `size`, `date` |
41
+ | `--order <order>` | Sort order | `asc` (low to high), `desc` (high to low) |
42
+ | `-l, --limit <number>` | Maximum results to return | `10`, `50`, `100` |
43
+ | `-S, --sources <sources>` | Sources to search (comma-separated) | `yts,torrentscsv,thepiratebay,nyaa` |
44
+
45
+ **Available Categories:**
46
+ - `all` - Search all categories
47
+ - `movie` - Movies
48
+ - `tv` - TV shows
49
+ - `anime` - Anime (mainly Nyaa)
50
+ - `music` - Music
51
+ - `games` - Games
52
+ - `apps` - Applications
53
+
54
+ ## Supported Sources
55
+
56
+ | Source | Categories | Description |
57
+ |--------|------------|-------------|
58
+ | yts | movie | Movie torrents with direct .torrent download |
59
+ | torrentscsv | all | General torrent search |
60
+ | thepiratebay | all | General torrent search |
61
+ | nyaa | anime, tv | Anime and Japanese media |
62
+
63
+ **Examples:**
64
+
65
+ ```bash
66
+ # Basic search
67
+ tor-dl search "Blade Runner 2049"
68
+
69
+ # Search movies with minimum seeds
70
+ tor-dl search "movie" --cat movie --min-seeds 100
71
+
72
+ # Search with size limits
73
+ tor-dl search "linux" --min-size 500MB --max-size 2GB
74
+
75
+ # Search specific sources only
76
+ tor-dl search "game" -S yts,thepiratebay
77
+
78
+ # Sort by size (smallest first)
79
+ tor-dl search "documentary" --sort size --order asc
80
+
81
+ # Limit results to top 10
82
+ tor-dl search "podcast" -l 10
83
+ ```
84
+
85
+ ### o <number>
86
+ Copy .torrent URL or magnet link to clipboard for the selected result number.
87
+
88
+ ```bash
89
+ tor-dl o <number>
90
+ ```
91
+
92
+ After running a search, enter the result number to copy the link to your clipboard.
93
+
94
+ **Example:**
95
+ ```bash
96
+ tor-dl search "python tutorial"
97
+ # Results displayed...
98
+ tor-dl o 5
99
+ # Magnet link copied to clipboard!
100
+ ```
101
+
102
+ ### open <number>
103
+ Same as `o` command - opens .torrent in browser or copies magnet link.
104
+
105
+ ```bash
106
+ tor-dl open <number>
107
+ ```
108
+
109
+ ### Options
110
+
111
+ | Flag | Description |
112
+ |------|-------------|
113
+ | `-v, --version` | Show version number |
114
+ | `-h, --help` | Show help information |
115
+
116
+ ## Size Format
117
+
118
+ Size can be specified in various formats:
119
+ - `KB` - Kilobytes
120
+ - `MB` - Megabytes
121
+ - `GB` - Gigabytes
122
+ - `TB` - Terabytes
123
+
124
+ Examples: `500MB`, `1.5GB`, `2GB`
125
+
126
+ ## Requirements
127
+
128
+ - Node.js >= 18.0.0
129
+ - npm
130
+ - Transmission (optional, for Windows)
131
+
132
+ ## Local Installation
133
+
134
+ ```bash
135
+ git clone https://github.com/eaeoz/tor-dl.git
136
+ cd tor-dl
137
+ npm install
138
+ npm run build
139
+ ```
140
+
141
+ ## Using with Windows Command Prompt
142
+
143
+ On Windows, if you add the tor-dl installation directory to your PATH environment variable, you can use it directly from the command line without needing to specify the full path each time.
144
+
145
+ ### Adding to PATH on Windows
146
+
147
+ 1. Press `Win + R`, type `sysdm.cpl`, and press Enter
148
+ 2. Go to **Advanced** tab **Environment Variables**
149
+ 3. Under "User variables" or "System variables", find **Path** and click **Edit**
150
+ 4. Add the folder where `tor-dl` is installed (e.g., `C:\Users\YourName\AppData\Roaming\npm`)
151
+ 5. Click **OK** and restart your command prompt
152
+
153
+ ### Quick Search Batch Script
154
+
155
+ Create a batch file (e.g., `search.bat`) in your PATH to quickly search for movies:
156
+
157
+ ```batch
158
+ @echo off
159
+
160
+ if "%*"=="" (
161
+ echo Please provide a movie name.
162
+ exit /b
163
+ )
164
+
165
+ tor-dl search "%*" --min-size 700MB --max-size 3GB -s 5
166
+ ```
167
+
168
+ **Usage:**
169
+ ```bash
170
+ search scream 7
171
+ ```
172
+
173
+ ## Install Transmission (Windows)
174
+
175
+ For Windows users, you can install Transmission client using winget:
176
+
177
+ ```bash
178
+ winget install Transmission.Transmission
179
+ ```
180
+
181
+ Or download directly from the official website:
182
+
183
+ - **Windows**: [https://transmissionbt.com/download](https://transmissionbt.com/download)
184
+
185
+ After installation, you can open magnet links directly in Transmission.
186
+
187
+ ## Transfer to Mobile/Tablet/Apple TV
188
+
189
+ After your download completes in Transmission, you can transfer the file directly to VLC on your mobile device, tablet, or Apple TV using WiFi transfer.
190
+
191
+ - If devices in different subnets: To connect to devices on different networks, port forwarding or routing must be configured on the network device which placed between them
192
+
193
+ ### Prerequisites
194
+
195
+ 1. **Set a Static IP** on your mobile device/tablet/Apple TV to ensure the IP address doesn't change
196
+ 2. Enable WiFi transfer on your device (VLC for iOS/Android has built-in WiFi transfer feature)
197
+
198
+ ### Setting Static IP
199
+
200
+ - **Mobile/Tablet**: Settings → WiFiLong press your network Modify Network Set static IP
201
+ - **Apple TV**: Settings → Network → Configure IP manually (or use DHCP with reserved IP on your router)
202
+
203
+ ### Upload Script
204
+
205
+ Place `upload.bat` in the same folder where you added to your search script mentioned above PATH (or any folder in your PATH):
206
+
207
+ ```batch
208
+ @echo off
209
+ if "%~1"=="" (
210
+ echo Usage: upload.bat "full\path\to\file.mp4"
211
+ exit /b 1
212
+ )
213
+
214
+ set "FILE=%~1"
215
+ set "REMOTE=http://192.168.1.222/upload.json"
216
+
217
+ curl --progress-bar -F "file=@%FILE%" %REMOTE% -o NUL
218
+ ```
219
+
220
+ **Note:** Replace `192.168.1.222` with your device's actual IP address.
221
+
222
+ ### Usage
223
+
224
+ ```bash
225
+ upload "C:\Users\YourName\Downloads\movie.mp4"
226
+ ```
227
+
228
+ ## Author
229
+
230
+ Sedat ERGOZ [@eaeoz](https://github.com/eaeoz)
231
+
232
+ ## License
233
+
234
+ MIT License
235
+
236
+ ## Disclaimer
237
+
237
238
  This tool is for educational purposes. Always respect copyright laws and the terms of service of torrent sites.
@@ -1 +1 @@
1
- {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../src/cli/parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,YAAY,EAAiB,MAAM,UAAU,CAAC;AAWvD,wBAAgB,WAAW,IAAI,YAAY,CAc1C;AAED,wBAAgB,YAAY,IAAI,OAAO,CAsFtC"}
1
+ {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../src/cli/parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,YAAY,EAAiB,MAAM,UAAU,CAAC;AAWvD,wBAAgB,WAAW,IAAI,YAAY,CAc1C;AAED,wBAAgB,YAAY,IAAI,OAAO,CAuFtC"}
@@ -86,7 +86,7 @@ Sources:
86
86
  .option('-o, --sort <sortBy>', 'Sort by (seeds|size|date)')
87
87
  .option('--order <order>', 'Order (asc|desc)')
88
88
  .option('-l, --limit <number>', 'Max results (default: 50)', parseInt)
89
- .option('-S, --sources <sources>', 'Sources (yts,thepiratebay,nyaa)')
89
+ .option('-S, --sources <sources>', 'Sources (yts,torrents-csv,thepiratebay,nyaa)')
90
90
  .option('-h, --help', 'Show help with examples')
91
91
  .allowUnknownOption()
92
92
  .hook('preAction', (thisCommand) => {
@@ -95,9 +95,10 @@ Sources:
95
95
  console.log('');
96
96
  console.log('Categories: all, movie, tv, anime, music, games, apps');
97
97
  console.log('Sources:');
98
- console.log(' yts - YTS (Movies)');
98
+ console.log(' yts - YTS (Movies)');
99
+ console.log(' torrents-csv - Torrents.csv (All categories)');
99
100
  console.log(' thepiratebay - The Pirate Bay');
100
- console.log(' nyaa - Nyaa.si (Anime)');
101
+ console.log(' nyaa - Nyaa.si (Anime)');
101
102
  console.log('');
102
103
  console.log('Examples:');
103
104
  console.log(' tor-dl search "movie" -c movie -s 100');
@@ -1 +1 @@
1
- {"version":3,"file":"parser.js","sourceRoot":"","sources":["../../src/cli/parser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,kCAcC;AAED,oCAsFC;AApHD,yCAAoC;AACpC,2BAA8C;AAC9C,+BAA4B;AAG5B,SAAS,UAAU;IACjB,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,iBAAY,EAAC,IAAA,WAAI,EAAC,SAAS,EAAE,oBAAoB,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;QACrF,OAAO,GAAG,CAAC,OAAO,IAAI,OAAO,CAAC;IAChC,C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,CAAC,WAAW,EAAE,GAAG,EAAE;QAC3B,OAAO,CAAC,KAAK,CAAC,mEAAmE,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACpG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tor-dl",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "CLI torrent search tool - search, open in browser, copy magnet links",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
package/src/cli/parser.ts CHANGED
@@ -55,7 +55,7 @@ Sources:
55
55
  .option('-o, --sort <sortBy>', 'Sort by (seeds|size|date)')
56
56
  .option('--order <order>', 'Order (asc|desc)')
57
57
  .option('-l, --limit <number>', 'Max results (default: 50)', parseInt)
58
- .option('-S, --sources <sources>', 'Sources (yts,thepiratebay,nyaa)')
58
+ .option('-S, --sources <sources>', 'Sources (yts,torrentscsv,thepiratebay,nyaa)')
59
59
  .option('-h, --help', 'Show help with examples')
60
60
  .allowUnknownOption()
61
61
  .hook('preAction', (thisCommand) => {
@@ -64,9 +64,10 @@ Sources:
64
64
  console.log('');
65
65
  console.log('Categories: all, movie, tv, anime, music, games, apps');
66
66
  console.log('Sources:');
67
- console.log(' yts - YTS (Movies)');
67
+ console.log(' yts - YTS (Movies)');
68
+ console.log(' torrentscsv - Torrents.csv (All categories)');
68
69
  console.log(' thepiratebay - The Pirate Bay');
69
- console.log(' nyaa - Nyaa.si (Anime)');
70
+ console.log(' nyaa - Nyaa.si (Anime)');
70
71
  console.log('');
71
72
  console.log('Examples:');
72
73
  console.log(' tor-dl search "movie" -c movie -s 100');