yourealwaysbe / forkyz

Forkyz Crosswords
GNU General Public License v3.0
39 stars 5 forks source link

Allow USAToday to update daily, since it does. #59

Closed th0mcat closed 1 year ago

th0mcat commented 1 year ago

I noticed a while ago that I couldn't grab USAToday directly from Forkyz on Sundays, which appears to have been by design in Shortyz. At some point, you must not have been able to pull the sunday crossword, but I made a script on my homeserver to pull twice daily, and noticed I was now able to pull the Sunday crosswords.

Script:

#!/bin/bash -x
cd /<dir>/crosswords/
wget http://picayune.uclick.com/comics/usaon/data/usaon$(date +"%y%m%d")-data.xml

Results:

-rw-rw-r--  1 thomcat thomcat  5573 Oct 31 18:59 usaon221101-data.xml
-rw-rw-r--  1 thomcat thomcat  5564 Nov  1 18:59 usaon221102-data.xml
-rw-rw-r--  1 thomcat thomcat  5491 Nov  2 18:59 usaon221103-data.xml
-rw-rw-r--  1 thomcat thomcat  5416 Nov  3 18:59 usaon221104-data.xml
-rw-rw-r--  1 thomcat thomcat  5469 Nov  4 18:59 usaon221105-data.xml
**-rw-rw-r--  1 thomcat thomcat  5534 Nov  5 18:59 usaon221106-data.xml**
-rw-rw-r--  1 thomcat thomcat  5497 Nov  6 18:59 usaon221107-data.xml
-rw-rw-r--  1 thomcat thomcat  5475 Nov  7 18:58 usaon221108-data.xml
-rw-rw-r--  1 thomcat thomcat  5424 Nov  8 18:59 usaon221109-data.xml
-rw-rw-r--  1 thomcat thomcat  5511 Nov  9 18:59 usaon221110-data.xml
-rw-rw-r--  1 thomcat thomcat  5387 Nov 10 18:59 usaon221111-data.xml
-rw-rw-r--  1 thomcat thomcat  5366 Nov 11 18:59 usaon221112-data.xml
**-rw-rw-r--  1 thomcat thomcat  5456 Nov 12 18:59 usaon221113-data.xml**
-rw-rw-r--  1 thomcat thomcat  5501 Nov 13 18:59 usaon221114-data.xml

I think this is all the changes needed to make USAToday pull on every day of the week. Going to build in Android Studio to see if this does indeed work.

th0mcat commented 1 year ago

Can confirm it works with Sundays now.

https://user-images.githubusercontent.com/37344783/201756954-61aab1fd-bbfe-4d2e-8c98-8828f5f24222.mp4

yourealwaysbe commented 1 year ago

Looks good, thanks!

I changed the branch to the version34 one. I don't have much planned for that so will probably merge it into master in a couple of days.