Oh goodness, it's been a while. I've just updated the code. One major thing i left out of the code is to set a timeout limit. Personally, i've had the program just sitting at one song or checking one page for hours. Not sure if anyone else has noticed this, because there weren't any messages about this, but it's fixed.
One other thing I've realized, I've used an RSS notification thing for Chrome for some time and have noticed that (either because of the RSS thing or bloodcat) the updates were kinda scattered. It seemed that it wasn't sorted at all and i may have missed an update or new song because of this. So i have gone back on my word and made it check 100 at a time. One problem i can see with this is, it'll want to download 80 songs if you haven't check for 100 songs before. I may add an option if the change between the number of songs last checked and just checked are greater than 20 or somethin like that. Maybe just add the first 100 on the list to start off and keep updating from there? Let me know what yall think.
I've also changed how i save the recently checked items. Instead of using just the IDs, i now just use the entire JSON item array. When comparing with JSON items, if the times for updates are different, then there should have been an update to the song and therefor needs to redownload. And in doing so, I've changed the file used from Recent.num to Recent.json. The program will check to see if you have the .json file first and update, if not it'll check for the .num file and update. In changing the file type, it will delete the Recent.num file and replace it with the .json file.
The last thing i added, and many people probably won't even bother with looking at it, are comments in the code. Basically anything to the right of a # is a comment.
Now for comments. For some reason, i became unsubscribed from my own thread. So i never got notified when yall commented here. Not sure why, but i'm resubscribing again so this shouldn't happen again.
Sir_Sandalot wrote:
RavenMac, you should make it in java. 1+ is a good idea
Also if it sorted all the ranked from the unranked in 2 folders and kept that up to date would be an awesome addition.
I'm workin on it. And (much more likely than with Python) maybe a GUI.
321jurgen wrote:
So this is maybe a bit far fetched but it would be awesome if you could make a program that runs in the background that downloads and updates all the maps. Maybe I should start programming something myself sometime :/ I only do web related stuff and it would be good to explore some different areas. If so in what language should I write it?
Language is all personal preference and what you know. As for doing this, each song added to osu is given an ID. You could see about gettin all of the numbers in a list/array and maybe checking the date created on your computer and comparing it with the last update on osu or bloodcat. I know osu you'll need to get permission to get the API for it, or somethin like that.
Sir_Sandalot wrote:
Python would be a good place to start but java would make it a lot more easier for other people to use it.
I had the same idea as you.
This is the reason why i'd like to make this in Java. That way nobody would have to download anything for it...That is unless they don't have java...
Zallius wrote:
Keeping every map would be quite space consuming, and would also make the game run inefficiently and become a nightmare for reprocessing.
Space consuming? Yes. Game running inefficiently / Reprocessing nightmare? Eh... it depends. Having a ton of songs, i haven't seen much problem playing the game. Preprocessing though, that takes a few minutes though.
321jurgen wrote:
That's what I would've thought at first but it will only take like 100gb (I'm guessing) which isn't that much to me and reprocessing (25k beatmaps) only takes like 2 minutes for me and doesn't happen that often.
I've got a folder of just the .osz files and then the songs folder. My songs folder is over 116GB with 16K song folders and almost 50K maps. Reprocessing takes about 2-3 minutes. It does add up, but i'm a very patient person. And i have 6TB of storage and am looking at upgrading fairly soon. So it's nothing.