Check-in [36c234a70b]
Overview
Comment: | Fix strโbytes saving for Py3. Tmplement tmp_files[] cleanup. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | action-mapfmts |
Files: | files | file ages | folders |
SHA1: |
36c234a70bce4dd76d63abc4141ccee2 |
User & Date: | mario on 2015-04-10 17:34:38 |
Other Links: | branch diff | manifest | tags |
Context
2015-04-10
| ||
17:35 | Rewritten action module and playlist conversion/export works okay enough. Merged into trunk. check-in: 60f5238dc8 user: mario tags: trunk | |
17:34 | Fix strโbytes saving for Py3. Tmplement tmp_files[] cleanup. Leaf check-in: 36c234a70b user: mario tags: action-mapfmts | |
16:40 | Finalize allowed filename extensions for exporting. Normalize Python3 string decoding (errors='ignore' per default). Update XSPF and SMIL export. Use row={} template now, instead of just carrying over title= to rewritten playlists. check-in: e136a78c73 user: mario tags: action-mapfmts | |
Changes
Modified action.py from [42bec82228] to [097271c366].
︙ | |||
39 40 41 42 43 44 45 | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | - | # Coupling to main window # main = None |
︙ | |||
246 247 248 249 250 251 252 | 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 | - + | return [url] elif dest in ("srv", "href"): return urls # Otherwise convert to local file if local_file: fn, is_unique = tmp_fn(cnt, dest) |
︙ | |||
372 373 374 375 376 377 378 | 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 | - + | # call conversion schemes converter = getattr(self, dest) or self.pls return converter(rows) # save directly def file(self, rows, dest, fn): |
︙ | |||
449 450 451 452 453 454 455 | 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 | - + + + - + + + + + - + + + + + | def xmlentities(s): global xmlentities from xml.sax.saxutils import escape as xmlentities return xmlentities(s) |