This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Fixnum | |
def ordinal | |
abs_number = self.abs | |
if (11..13).include?(abs_number % 100) | |
"th" | |
else | |
case abs_number % 10 | |
when 1; "st" | |
when 2; "nd" | |
when 3; "rd" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# At least for movies, it looks like it copies the 'selected' stuff into the | |
# _stored/ folder. It also seems to use the _combined/ folder for access. | |
# so, I shoud be able to delete anything that's not those two. | |
# And after that, in the _combined folder, I can/should delete any broken links | |
# and remove them from <art> and <posters> in Info.xml. | |
# remove <reviews> from Info.xml too, since it seems to be unused. | |
# As far as I can tell, extras.xml can just be deleted? | |
# Same for Artists |