Commit Graph
100 Commits
Author SHA1 Message Date
tcely 27ceecadc8 Check media_format for + 2025-05-06 11:49:18 -04:00
tcely 024ced3696 Remux video for combined format download 2025-05-06 11:44:39 -04:00
tcely c593933bfa Add more details about saving database entries 2025-05-05 05:31:17 -04:00
tcely 0fb7520a2b Go back to removing then adding the foreign key 2025-05-04 22:25:37 -04:00
tcely c3b5a25b9d Alter sync_source first 2025-05-04 21:36:43 -04:00
tcely a8ee30192c Remove pprint as it is now unused 2025-05-04 14:06:34 -04:00
tcely 305d27a7af Try using foreign_key_checks 2025-05-04 13:35:51 -04:00
tcely 621a578787 Log the Done before returning 2025-05-04 13:25:29 -04:00
tcely a59fb8bc26 The SQL output needs to be returned 2025-05-04 13:13:23 -04:00
tcely da06a1ffa1 Add --dry-run and apply SQL when it is not used 2025-05-04 13:00:28 -04:00
tcely 5e8cc639f7 Generate SQL for deleting tables 2025-05-04 11:03:26 -04:00
tcely 5e2200382f Check for completed data migration 2025-05-04 10:10:34 -04:00
tcely e6e4c3300a Update fix-mariadb.py 2025-05-04 09:41:21 -04:00
tcely 36681aadc0 Add check_migration_status function 2025-05-04 09:35:04 -04:00
tcely 2a98707254 Collect SQL with schema editor 2025-05-04 07:46:36 -04:00
tcely cc9b5446c1 Use the quote_name from schema 2025-05-04 07:24:54 -04:00
tcely b5828801de Update fix-mariadb.py 2025-05-04 06:34:09 -04:00
tcely fc89178f28 Switch to string interpolation 2025-05-04 06:24:10 -04:00
tcely 503bb3e5b1 Update fix-mariadb.py 2025-05-04 05:46:33 -04:00
tcely 435ebac328 Generate some SQL for native UUID columns 2025-05-04 05:19:59 -04:00
tcely ba87e39e3d Update fix-mariadb.py 2025-05-04 03:58:56 -04:00
tcely 5235c53dad Check the current column type 2025-05-04 03:47:18 -04:00
tcely e4f3428aa8 Allow deleting only a few tables
- It must be one of the metadata related tables
- The table must be present in the database
2025-05-04 01:49:18 -04:00
tcely 960c07a846 Update fix-mariadb.py 2025-05-04 01:20:39 -04:00
tcely 919ba49e28 Update fix-mariadb.py 2025-05-04 00:21:16 -04:00
tcely 07f689e5d0 Update fix-mariadb.py 2025-05-04 00:04:00 -04:00
tcely a7fe0d5eeb Combine the strings 2025-05-03 22:49:13 -04:00
tcely 0f7643971f Adjust options in fix-mariadb.py 2025-05-03 22:44:31 -04:00
tcely c11e78bc47 Remove executable bit 2025-05-03 21:19:59 -04:00
tcely d5045d8d03 Created fix-mariadb.py 2025-05-03 21:13:16 -04:00
tcely efc5942051 fixup: closing parenthesis 2025-05-02 21:05:16 -04:00
tcely 71b57dd477 Schedule thumbnail tasks for new media 2025-05-02 21:03:09 -04:00
tcely 46d2e3c8e7 raise_for_status checks status_code itself 2025-05-02 17:14:07 -04:00
tcely a7fdd02d47 A standard Exception is fine 2025-05-02 17:09:23 -04:00
tcely d6b60f41c9 End the task for HTTP 404 response status 2025-05-02 16:52:20 -04:00
tcely add6454c33 Use NoThumbnailException from thumbnail task 2025-05-02 16:20:48 -04:00
tcely 3a0c4c8fb1 Raise when status_code is not 200: OK 2025-05-02 16:12:25 -04:00
tcely f6b20c03e3 Add NoThumbnailException 2025-05-02 15:36:00 -04:00
tcely cf8555aab1 Show migrations when debugging 2025-05-02 14:28:20 -04:00
tcely f850502ad0 Narrow the exceptions 2025-05-01 10:24:44 -04:00
tcely 19a2d03c5b Remove an unneeded if 2025-05-01 09:50:49 -04:00
tcely c52fd14cd0 Remove Media.metadata_published function 2025-05-01 09:46:48 -04:00
tcely 39be704545 Switch to Media.ts_to_dt function 2025-05-01 09:44:27 -04:00
tcely 0b37aa3d9f Call Media.ts_to_dt function instead 2025-05-01 09:26:14 -04:00
tcely f856caa024 Remove assertion 2025-05-01 09:21:21 -04:00
tcely ddf9012210 Handle AssertionError for timestamp 2025-05-01 08:42:56 -04:00
tcely ca9fbd7168 Copy updated thumbnail next to media 2025-05-01 03:25:36 -04:00
tcely 144720f6af Switch to the openresty stage 2025-04-30 22:47:53 -04:00
tcely e58c4bae99 Switch back to the nginx-light stage 2025-04-30 22:13:45 -04:00
tcely f9d1e00356 fixup: remove the extra newline 2025-04-30 21:41:57 -04:00
tcely 7ca79af746 Use the openresty binary 2025-04-30 21:36:20 -04:00
tcely cfb4b4ca17 Don't install nginx binaries 2025-04-30 21:32:54 -04:00
tcely a8d8e9d055 Update run 2025-04-30 21:23:14 -04:00
tcely 3f073b3ec3 Include openresty 2025-04-30 19:09:55 -04:00
tcely 46dc2c9fee Include missing_pot formats in testing 2025-04-30 16:35:38 -04:00
tcely 6fe76eb34a Adjust metadata & media download delays 2025-04-30 15:54:21 -04:00
tcely f9bb33c3ab Save thumbnail when refreshing formats 2025-04-29 17:43:35 -04:00
tcely f724c5765f Do not cache the blank thumbnail for so long 2025-04-29 14:52:09 -04:00
tcely 84b1a48f30 Overwrite thumbnail files 2025-04-29 13:22:09 -04:00
tcely 0875d09ae8 Fix media-thumb-redownload errors 2025-04-29 10:18:37 -04:00
tcely bd0ad3682a Handle thumbnail redownload requests 2025-04-28 15:03:13 -04:00
tcely ea545d49a6 Add redownload-thumb URL 2025-04-28 14:39:59 -04:00
tcely e2bf227187 Add redownload thumb link 2025-04-28 14:20:34 -04:00
tcely 127fc990eb Use the length of the new metadata 2025-04-27 16:23:51 -04:00
tcely 050a60c0c6 Better result when Media.new_metadata does not exist 2025-04-27 14:57:01 -04:00
tcely b9ee06eeb5 Remove the side-effect from Media.metadata_loads 2025-04-27 12:58:34 -04:00
tcely 6d19844af7 dict.pop is the nicer way to remove keys 2025-04-27 03:49:34 -04:00
tcely 91cb0ce83b Ignore KeyError when deleting keys 2025-04-27 03:30:39 -04:00
tcely cdbdc755cb Fix order of operations
We must look for the value before we set it.
2025-04-27 03:05:34 -04:00
tcely 832799b51b Fix variable scoping 2025-04-27 02:31:08 -04:00
tcely ccf0e98798 Use the actual model for data migration 2025-04-27 02:20:33 -04:00
tcely 6caf26ed5b Drop an unnecessary 's' 2025-04-26 22:02:48 -04:00
tcely cbcd1185af Update reset-metadata.py 2025-04-26 21:58:26 -04:00
tcely 9f56c38166 Be extra careful about which formats are deleted 2025-04-26 21:23:34 -04:00
tcely c7b9efbaac Expand resolution matching to include height
Return the requested codec before matching the first available format
2025-04-26 07:13:31 -04:00
tcely 6e97a24ec0 Restore all the individual files 2025-04-24 15:09:11 -04:00
tcely ef4f4eed03 Update 0001_squashed_0030_alter_source_source_vcodec.py 2025-04-24 13:44:13 -04:00
tcely 1ef1a5a985 Update 0001_squashed_0030_alter_source_source_vcodec.py 2025-04-24 13:40:16 -04:00
tcely 6790456e0f Update 0001_squashed_0030_alter_source_source_vcodec.py 2025-04-24 13:33:55 -04:00
tcely ff0f72b884 Update 0001_squashed_0030_alter_source_source_vcodec.py 2025-04-24 13:31:25 -04:00
tcely 8afe97c4d1 Update 0011_auto_20220201_1654_squashed_0020_auto_20231024_1825.py 2025-04-24 13:23:00 -04:00
tcely 6d299a6661 Update 0001_squashed_0030_alter_source_source_vcodec.py 2025-04-24 00:08:11 -04:00
tcely fc0ab058a6 Update 0031_metadata_metadataformat.py 2025-04-24 00:05:08 -04:00
tcely d30b399301 Update 0011_auto_20220201_1654_squashed_0020_auto_20231024_1825.py 2025-04-24 00:01:46 -04:00
tcely 79e7d88528 Update 0001_initial_squashed_0010_auto_20210924_0554.py 2025-04-24 00:00:16 -04:00
tcely ca2e2c8ac5 Update 0011_auto_20220201_1654_squashed_0020_auto_20231024_1825.py 2025-04-23 23:55:47 -04:00
tcely 0152c971c9 Update 0001_initial_squashed_0010_auto_20210924_0554.py 2025-04-23 23:54:45 -04:00
tcely de26749409 Update 0001_squashed_0030_alter_source_source_vcodec.py 2025-04-23 23:24:41 -04:00
tcely 706a34d690 Update 0001_initial_squashed_0010_auto_20210924_0554.py 2025-04-23 23:22:20 -04:00
tcely a2f8e7074c Update 0001_initial_squashed_0010_auto_20210924_0554.py 2025-04-23 23:19:54 -04:00
tcely a5c8a35875 Update 0001_squashed_0030_alter_source_source_vcodec.py 2025-04-23 23:15:44 -04:00
tcely bcb3ae0215 Update 0001_squashed_0030_alter_source_source_vcodec.py 2025-04-23 23:13:03 -04:00
tcely 9803d5890f Rename tubesync/sync/0001_squashed_0030_alter_source_source_vcodec.py to tubesync/sync/migrations/0001_squashed_0030_alter_source_source_vcodec.py 2025-04-23 23:10:16 -04:00
tcely f220c797bc Update 0031_metadata_metadataformat.py 2025-04-23 23:07:56 -04:00
tcely 57c39fcc74 Rename tubesync/sync/migrations/0001_squashed_0030_alter_source_source_vcodec.py to tubesync/sync/0001_squashed_0030_alter_source_source_vcodec.py 2025-04-23 23:05:12 -04:00
tcely b797abae53 Update 0001_initial_squashed_0010_auto_20210924_0554.py 2025-04-23 22:59:44 -04:00
tcely 86b38a05e7 Update 0001_squashed_0030_alter_source_source_vcodec.py 2025-04-23 22:58:37 -04:00
tcely 8dba1a184d Update 0011_auto_20220201_1654_squashed_0020_auto_20231024_1825.py 2025-04-23 22:52:52 -04:00
tcely bd02f8e483 Update 0001_initial_squashed_0010_auto_20210924_0554.py 2025-04-23 22:29:59 -04:00
tcely 3e47da7870 Update 0011_auto_20220201_1654_squashed_0020_auto_20231024_1825.py 2025-04-23 22:23:43 -04:00