Commit 5e9dfd7
[BUGFIX] - Fix track filename mismatch issue automatic-ripping-machine#1530 (automatic-ripping-machine#1594)
* Fix off-by-one track filename bug when moving files after rip (bug automatic-ripping-machine#1530)
* updating file name matching logic
* reverting uneeded change
* using authoritative file naming
Authoritative Filename Propagation:
The filename variable is defined as the authoritative source of truth for the destination path (filepathname).
Before executing the HandBrake command, track.filename and track.orig_filename are updated with the authoritative filename.
Database Commit:
The updated values of track.filename are committed to the database before proceeding with the HandBrake command.
Error Handling:
If HandBrake fails, the authoritative name is already saved in the database, ensuring consistency for debugging and recovery.
* Update handbrake.py
* minimized changes
* Remove filename assignment in handbrake.py
Remove assignment of track.filename and track.orig_filename.
* Initial plan
* Fix filename path duplication bug in handbrake_mkv function
Co-authored-by: TJSeit <7307974+TJSeit@users.noreply.github.com>
* Fix filename path duplication in handbrake_main_feature function
Co-authored-by: TJSeit <7307974+TJSeit@users.noreply.github.com>
* Initial plan
* Fix MakeMKV track numbering to be 1-indexed for consistency with HandBrake
Co-authored-by: TJSeit <7307974+TJSeit@users.noreply.github.com>
* Fix logging message - remove incorrect -1 from no_of_titles
Co-authored-by: TJSeit <7307974+TJSeit@users.noreply.github.com>
* Initial plan
* Implement fuzzy file matching for MKV transcoding filename mismatches
Co-authored-by: TJSeit <7307974+TJSeit@users.noreply.github.com>
* Update test file to be standalone and fix flake8 issues
Co-authored-by: TJSeit <7307974+TJSeit@users.noreply.github.com>
* Initial plan
* Fix PEP8 compliance issues in test_ripper_makemkv_track_numbering.py
Co-authored-by: TJSeit <7307974+TJSeit@users.noreply.github.com>
* Initial plan
* Clean up PR: remove track numbering changes, keep file matching fix
Co-authored-by: TJSeit <7307974+TJSeit@users.noreply.github.com>
* Bump version from 2.20.4 to 2.20.5
* Initial plan
* Refactor handbrake.py to reduce code duplication
Co-authored-by: TJSeit <7307974+TJSeit@users.noreply.github.com>
* Further cleanup: remove redundant error logging in handbrake_mkv
Co-authored-by: TJSeit <7307974+TJSeit@users.noreply.github.com>
* Initial plan
* Fix SonarQube code duplication issues in test file
Co-authored-by: TJSeit <7307974+TJSeit@users.noreply.github.com>
* Initial plan
* Fix useless self-assignment in handbrake.py line 134
Co-authored-by: TJSeit <7307974+TJSeit@users.noreply.github.com>
* Resolving SonarQube issues and bumping version
* Removing unnecessary try catch
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TJSeit <7307974+TJSeit@users.noreply.github.com>
Co-authored-by: 1337-server <sndspamfilter@gmail.com>1 parent 8e3af93 commit 5e9dfd7
3 files changed
Lines changed: 306 additions & 65 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
18 | 84 | | |
19 | 85 | | |
20 | 86 | | |
| |||
42 | 108 | | |
43 | 109 | | |
44 | 110 | | |
45 | | - | |
| 111 | + | |
46 | 112 | | |
47 | 113 | | |
48 | 114 | | |
| |||
58 | 124 | | |
59 | 125 | | |
60 | 126 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 127 | + | |
70 | 128 | | |
71 | 129 | | |
72 | | - | |
| 130 | + | |
73 | 131 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 132 | + | |
| 133 | + | |
80 | 134 | | |
81 | 135 | | |
82 | | - | |
| 136 | + | |
83 | 137 | | |
84 | 138 | | |
85 | 139 | | |
| |||
123 | 177 | | |
124 | 178 | | |
125 | 179 | | |
126 | | - | |
127 | | - | |
| 180 | + | |
| 181 | + | |
128 | 182 | | |
129 | 183 | | |
130 | 184 | | |
131 | | - | |
132 | 185 | | |
133 | 186 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 187 | + | |
| 188 | + | |
143 | 189 | | |
144 | 190 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 191 | + | |
| 192 | + | |
157 | 193 | | |
158 | | - | |
| 194 | + | |
159 | 195 | | |
160 | 196 | | |
161 | 197 | | |
| |||
208 | 244 | | |
209 | 245 | | |
210 | 246 | | |
211 | | - | |
| 247 | + | |
212 | 248 | | |
213 | 249 | | |
214 | 250 | | |
215 | 251 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
| 252 | + | |
| 253 | + | |
235 | 254 | | |
236 | 255 | | |
237 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
229 | 318 | | |
230 | 319 | | |
231 | 320 | | |
| |||
235 | 324 | | |
236 | 325 | | |
237 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
238 | 330 | | |
239 | | - | |
| 331 | + | |
240 | 332 | | |
241 | | - | |
| 333 | + | |
242 | 334 | | |
243 | 335 | | |
244 | 336 | | |
| |||
0 commit comments