4cd0f3df4e
Verified checkmark on verified accounts
2022-09-12 19:09:10 +01:00
10ec46a0cf
Squashed commit of the following:
...
commit 12bb37ef0a430ab30d0ec3e06d7f58d42b1332b9
Author: Dylan <dylanpdx@gmail.com >
Date: Mon Sep 12 17:31:22 2022 +0100
Increase memory to 1GB
commit bbdd0f85c500413f765b44cdb8643539a01b3968
Author: Dylan <dylanpdx@gmail.com >
Date: Thu Sep 8 23:19:41 2022 +0100
Reduced memory to 256mb
commit 5fa80151a09092a7206ffd294ef464650b776ba8
Author: Dylan <dylanpdx@gmail.com >
Date: Thu Sep 8 23:10:57 2022 +0100
Updated serverless code
commit 42f826908ac82a91e67312ae6270ce6ac9bfd216
Author: Dylan <dylanpdx@gmail.com >
Date: Thu Sep 8 19:33:39 2022 +0100
Squashed commit of the following:
commit 27accd7a5a
Author: Dylan <dylanpdx@gmail.com >
Date: Thu Sep 1 23:54:15 2022 +0100
Documented apiMirrors
commit bf46166b02
Author: Dylan <dylanpdx@gmail.com >
Date: Thu Sep 1 22:58:53 2022 +0100
Fixed incorrect log print 😅
commit a05ff596e0
Author: Dylan <dylanpdx@gmail.com >
Date: Thu Sep 1 22:52:20 2022 +0100
Fix #14
commit 1954a72bd0
Author: Dylan <dylanpdx@gmail.com >
Date: Thu Sep 1 22:33:07 2022 +0100
API Mirror
commit c58e9b2755
Author: Dylan <dylanpdx@gmail.com >
Date: Thu Sep 1 21:38:42 2022 +0100
Updated requirements
commit a51876a829
Author: Dylan <dylanpdx@gmail.com >
Date: Sat Jul 23 16:34:36 2022 +0100
Fix twitter api failing for direct video linking
commit d97f70b224
Author: Dylan <dylanpdx@gmail.com >
Date: Sat Jul 23 16:29:39 2022 +0100
Added option to disable cache
commit 2da2cd5200
Author: Dylan <dylanpdx@gmail.com >
Date: Fri Jul 22 00:57:07 2022 +0100
Removed image scale-down at the end of processing
commit b0547ce810
Author: Dylan <dylanpdx@gmail.com >
Date: Sun Jul 17 14:00:19 2022 +0100
Same fix as last commit
commit 1ec59bce2e
Author: Dylan <dylanpdx@gmail.com >
Date: Sun Jul 17 13:54:59 2022 +0100
Fixed direct linking on Discord
commit 2a77ff96b0
Author: Dylan <dylanpdx@gmail.com >
Date: Wed Jul 6 19:43:22 2022 +0100
Separated code into different files
commit 973c31f705
Merge: e28789a
b27296e
Author: Dylan <dylanpdx@gmail.com >
Date: Thu Jun 9 14:35:33 2022 +0100
Merge pull request #7 from flifloo/main
Add Docker image and compose with documentation
commit b27296e317
Author: flifloo <flifloo@gmail.com >
Date: Tue Jun 7 11:46:39 2022 +0200
Add Docker image and compose with documentation
commit 40f4770e17
Author: flifloo <flifloo@gmail.com >
Date: Tue Jun 7 10:44:52 2022 +0200
Fix links.json creation
commit e28789a09d
Author: Dylan <dylanpdx@gmail.com >
Date: Sun Jun 5 13:36:18 2022 +0100
Added og:description on videos for Telegram users
commit faed7482f4
Author: Dylan <dylanpdx@gmail.com >
Date: Sun Jun 5 02:10:54 2022 +0100
Update requirements.txt
commit a5b2eb6cd0
Author: Dylan <dylanpdx@gmail.com >
Date: Sat Jun 4 13:53:14 2022 +0100
Restore old behavior of showing error message
commit 16dfc509d3
Author: Dylan <dylanpdx@gmail.com >
Date: Fri Jun 3 23:27:33 2022 +0100
Small log message when an unofficial API call succeeds
commit 174a20d896
Author: Dylan <dylanpdx@gmail.com >
Date: Thu Jun 2 17:07:48 2022 +0100
Use unofficial API when official API fails
commit e64dee9349
Author: Dylan <dylanpdx@gmail.com >
Date: Thu Jun 2 01:09:04 2022 +0100
Temporary redirect for failing links due to API ratelimiting
commit f0f709f62e
Author: Dylan <dylanpdx@gmail.com >
Date: Wed Jun 1 21:52:47 2022 +0100
use yt-dlp
commit 0f77b2e0a4
Merge: 285c8f7
ffcde09
Author: Dylan <dylanpdx@gmail.com >
Date: Wed Jun 1 19:26:22 2022 +0000
Merge branch 'main' of github.com:dylanpdx/BetterTwitFix
commit 285c8f70f8
Author: Dylan <dylanpdx@gmail.com >
Date: Wed Jun 1 19:25:23 2022 +0000
Service auto-restart
commit ffcde09b97
Author: Dylan <dylanpdx@gmail.com >
Date: Mon May 30 01:25:53 2022 +0100
Return HTTP 400 if missing query parameters
commit 891db049af
Author: Dylan <dylanpdx@gmail.com >
Date: Fri May 27 23:18:58 2022 +0100
Fixed incorrect TTL being set
commit 797b670d0e
Author: Dylan <dylanpdx@gmail.com >
Date: Thu May 26 18:11:30 2022 +0100
Do not combine single image tweets
commit 728785278b
Author: Dylan <dylanpdx@gmail.com >
Date: Thu May 26 16:48:24 2022 +0100
Fixed direct video linking
commit ec1f4dc284
Author: Dylan <dylanpdx@gmail.com >
Date: Thu May 26 16:13:31 2022 +0100
Image check in lambda handler
commit 77b972a1b2
Author: Dylan <dylanpdx@gmail.com >
Date: Thu May 26 16:10:29 2022 +0100
Switched to using ThreadPoolExecutor
commit 4feb1b65d6
Author: Dylan <dylanpdx@gmail.com >
Date: Thu May 26 15:01:12 2022 +0100
Optimized image downloads
commit 2819b504a3
Author: Dylan <dylanpdx@gmail.com >
Date: Thu May 26 02:01:43 2022 +0100
Add quality argument
commit 2399788fdc
Author: Dylan <dylanpdx@gmail.com >
Date: Thu May 26 01:29:47 2022 +0100
Misc code cleanup; Fixed Discord not embedding 301 redirects issue
commit 7a021916f0
Author: Dylan <dylanpdx@gmail.com >
Date: Thu May 26 00:58:28 2022 +0100
Use proper mime type
commit a06a89825c
Author: Dylan <dylanpdx@gmail.com >
Date: Wed May 25 23:56:48 2022 +0100
Fixed formatting
commit 6717fd464a
Author: Dylan <dylanpdx@gmail.com >
Date: Wed May 25 23:55:41 2022 +0100
Documented combination_method
commit 022edb5122
Author: Dylan <dylanpdx@gmail.com >
Date: Wed May 25 23:48:55 2022 +0100
Moved combineImg to own module; created AWS dockerfile; added combination_method config
commit d7e0cb9089
Author: Dylan <dylanpdx@gmail.com >
Date: Wed May 25 17:28:03 2022 +0100
Changed scaling method
commit 55ea554357
Author: Dylan <dylanpdx@gmail.com >
Date: Wed May 25 16:30:51 2022 +0100
Re-scale image down
commit b457760fae
Author: Dylan <dylanpdx@gmail.com >
Date: Wed May 25 01:20:27 2022 +0100
Use JPEG for final combined img
commit 39a9ffd512
Author: Dylan <dylanpdx@gmail.com >
Date: Wed May 25 00:49:22 2022 +0100
Method to embed combined tweet images. WIP & may be CPU intensive
commit a6efd26447
Author: Dylan <dylanpdx@gmail.com >
Date: Mon May 23 20:33:11 2022 +0100
Oops- Updated other two error msgs
commit e81beb975c
Author: Dylan <dylanpdx@gmail.com >
Date: Mon May 23 19:02:54 2022 +0100
Improved Fail link message
commit 55c956ad4e
Author: Dylan <dylanpdx@gmail.com >
Date: Sun May 22 15:19:28 2022 +0100
Error checking for loading cache json file
commit 014f9d0e8d
Author: Dylan <dylanpdx@gmail.com >
Date: Sun May 22 15:19:17 2022 +0100
TTL for cache entries
commit f640ac69a1
Merge: 7eff745
08d686c
Author: Dylan <dylanpdx@gmail.com >
Date: Sat May 21 16:13:26 2022 +0100
Merge pull request #2 from cabiste69/patch-1
Minor cleaning
commit 08d686c652
Author: cabiste <ahmedjj354@gmail.com >
Date: Fri May 20 23:14:58 2022 +0100
minor cleaning
commit 7eff745550
Author: Dylan <dylanpdx@gmail.com >
Date: Wed May 18 18:23:11 2022 +0100
Clarifications in readme
commit 8df211090c
Merge: 5a2a4e6
681f191
Author: Dylan <dylanpdx@gmail.com >
Date: Tue May 17 17:14:30 2022 +0100
Merge pull request #1 from Fam0r/main
Use the best bitrate video for twitter embeds
commit 5a2a4e6316
Author: Dylan <dylanpdx@gmail.com >
Date: Tue May 17 14:55:49 2022 +0100
Display how many total images in the post
commit 681f191502
Author: Fam0r <fam0r@mailbox.org >
Date: Tue May 17 09:40:40 2022 +0300
Use the best bitrate video for twitter embeds
commit 82fe66af48
Author: Dylan <dylanpdx@gmail.com >
Date: Mon May 16 20:18:18 2022 +0100
Work in progress code for combining up to 4 images
commit fba1256efd
Author: Dylan <dylanpdx@gmail.com >
Date: Sun May 15 01:42:22 2022 +0100
Fixed infinite redirect(?)
commit 85c682ab11
Author: Dylan <dylanpdx@gmail.com >
Date: Sun May 15 01:15:15 2022 +0100
Updated gitignore
commit f2eefbe5a542f1a6fa8404228c2a9425054765a8
Author: Dylan <dylanpdx@gmail.com >
Date: Wed May 18 18:21:00 2022 +0100
Fixed DynamoDB integration
commit 32e5376b987c732147ab3289c2c42a8afde19e2f
Author: Dylan <dylanpdx@gmail.com >
Date: Mon May 16 19:28:31 2022 +0100
DynamoDB support & Serverless config update
commit dee62f812a6c8da443b111c7f3dd24bcb4d76525
Author: Dylan <dylanpdx@gmail.com >
Date: Sun May 15 17:06:42 2022 +0100
Updated serverless.yml to dockerize pip packages
commit 43d69a1d872c293a4b70d2a330261245783eb924
Author: Dylan <dylanpdx@gmail.com >
Date: Sun May 15 14:30:18 2022 +0100
serverless wsgi files
commit 96246aa9217774ddc88275ffba5bf1790317eda9
Author: Dylan <dylanpdx@gmail.com >
Date: Sun May 15 01:47:20 2022 +0100
Squashed commit of the following:
commit fba1256efd
Author: Dylan <dylanpdx@gmail.com >
Date: Sun May 15 01:42:22 2022 +0100
Fixed infinite redirect(?)
commit 85c682ab11
Author: Dylan <dylanpdx@gmail.com >
Date: Sun May 15 01:15:15 2022 +0100
Updated gitignore
commit 2c9563fafe97bfe7782386aaa04372dcac5f8136
Author: Dylan <dylanpdx@gmail.com >
Date: Sun May 15 01:14:41 2022 +0100
Serverless config
2022-09-12 17:36:11 +01:00
bf46166b02
Fixed incorrect log print 😅
2022-09-01 22:58:53 +01:00
a05ff596e0
Fix #14
2022-09-01 22:52:20 +01:00
1954a72bd0
API Mirror
2022-09-01 22:33:07 +01:00
a51876a829
Fix twitter api failing for direct video linking
2022-07-23 16:34:36 +01:00
b0547ce810
Same fix as last commit
2022-07-17 14:00:19 +01:00
1ec59bce2e
Fixed direct linking on Discord
2022-07-17 13:54:59 +01:00
2a77ff96b0
Separated code into different files
2022-07-06 19:43:22 +01:00
40f4770e17
Fix links.json creation
2022-06-07 10:44:52 +02:00
a5b2eb6cd0
Restore old behavior of showing error message
2022-06-04 13:53:14 +01:00
16dfc509d3
Small log message when an unofficial API call succeeds
2022-06-03 23:27:33 +01:00
174a20d896
Use unofficial API when official API fails
2022-06-02 17:07:48 +01:00
e64dee9349
Temporary redirect for failing links due to API ratelimiting
2022-06-02 01:09:04 +01:00
f0f709f62e
use yt-dlp
2022-06-01 21:52:47 +01:00
891db049af
Fixed incorrect TTL being set
2022-05-27 23:18:58 +01:00
797b670d0e
Do not combine single image tweets
2022-05-26 18:11:30 +01:00
728785278b
Fixed direct video linking
2022-05-26 16:48:24 +01:00
2399788fdc
Misc code cleanup; Fixed Discord not embedding 301 redirects issue
2022-05-26 01:29:47 +01:00
022edb5122
Moved combineImg to own module; created AWS dockerfile; added combination_method config
2022-05-25 23:48:55 +01:00
b457760fae
Use JPEG for final combined img
2022-05-25 01:20:27 +01:00
39a9ffd512
Method to embed combined tweet images. WIP & may be CPU intensive
2022-05-25 00:49:22 +01:00
a6efd26447
Oops- Updated other two error msgs
2022-05-23 20:33:11 +01:00
e81beb975c
Improved Fail link message
2022-05-23 19:02:54 +01:00
55c956ad4e
Error checking for loading cache json file
2022-05-22 15:19:28 +01:00
014f9d0e8d
TTL for cache entries
2022-05-22 15:19:17 +01:00
8df211090c
Merge pull request #1 from Fam0r/main
...
Use the best bitrate video for twitter embeds
2022-05-17 17:14:30 +01:00
5a2a4e6316
Display how many total images in the post
2022-05-17 14:55:49 +01:00
681f191502
Use the best bitrate video for twitter embeds
2022-05-17 09:40:40 +03:00
fba1256efd
Fixed infinite redirect(?)
2022-05-15 01:42:22 +01:00
87ba86ba50
Removed tracking/stats, anything non-embed related
2022-05-13 20:04:27 +01:00
7a0b2660c5
Name changes & removed links.json
2022-05-13 19:50:39 +01:00
55f59c150f
Updated TwitFix to bring it inline with Prod
...
- Improve the Like / Retweet display
- Fix video descriptions being bad and broken
- Add NSFW status to the VNF
- Change embed color depending on NSFW status
- Fix video bitrate sorting for the third time ( all adys doing )
- Added a .json endpoint that allows you to get the raw VNF json for any tweet
- Fixed Videos type not being detected and cached, resulting in empty VNFs (no screen_name, likes, or RTs)
2022-05-10 18:40:09 -05:00
7bbcd75600
Fix tweet text content appearing in telegram
...
- Fix video quality sorting
- Fix screenName being empty
- Fix img accessed before declaration
- Hopefully tweet text content shows now in telegram
- Add flask_cors dependency
- Remove unnecesary react-helmet garbage
2022-05-03 11:13:34 -04:00
b201bdcf2e
Re-add quality sorting
2022-03-19 20:37:28 -04:00
9f8e3807b2
Brought up to date with Live
...
Added:
- DB Table is now configured in the config file ( lets you run multiple instances on different tables, handy for testing )
- Added way to post any image in a multi-image tweet by using /2, /3, or /4
- Added @DorukSega 's implementation of the /latest page that actually looks nice
- Made it so all images are stored to the images object in the vnf ( first image is also stored in thumb for back compat )
Fixed:
- Made it so you can put .mp4 at the end of any tweet link and it'll work, even if the url has args
2022-03-07 06:52:39 -06:00
0385227468
Tweet Types / QRTs / TOP / Cleanup
2022-02-20 16:13:18 -06:00
71168a29b3
Added /dl/ and .mp4 endpoints
...
These still have some hard-coded paths built in, so take care to fix those before using
2022-01-17 17:36:43 -06:00
713d1d81cf
FINALLY fixed the /info/ endpoint
2021-12-02 20:14:01 -06:00
3ab59daf28
Several changes
...
1. Add the /latest/ endpoint
2. Fix a problem that was leading to infinite loops in some instances
3. Attempt to add Slack support via adding the useragent
4. Make the output a bit prettier and more descriptive
2021-12-02 18:58:36 -06:00
f22ce5b77a
Added support for twitter urls with /statuses/, Made some changes to direct urls
2021-10-01 16:59:20 -05:00
d9e4368ecc
Add Revolt's user agent
2021-08-17 04:11:23 +02:00
94ce8ba17e
Addresses #23
2021-08-02 21:52:13 -04:00
35988b1272
Added a direct MP4 endpoint (/dir/ before the input url)
2021-07-21 16:36:05 -05:00
a59fe47cac
Fix link regex to match pre-snowflake tweet IDs
2021-07-20 00:17:57 -04:00
b56bee745b
Update twitfix.py
2021-07-16 22:25:43 +02:00
5567498a20
Added automatic link redirecting for t.co links in non video tweets when using the API
2021-07-14 19:15:06 -05:00
f3f62f3cb4
Added more config options for color, name, and repo, made clicking on the bare url directly redirect to the repo based on useragent, fixed one config that was being created with the wrong name, finally added a url config so oembed works on other servers without digging around in the html
2021-07-14 03:33:46 -05:00
e276425b74
Removed some debug code, fixed a missed renamed var, fixed redirects on full url subpaths
2021-07-13 13:57:09 -05:00
59c4bbf188
Changed variable and function naming conventions to match that of pythons spec
2021-07-14 03:19:24 +10:00