diff --git a/QEGearImporter/QEGearImporter.toc b/QEGearImporter/QEGearImporter.toc new file mode 100644 index 0000000..025c9b9 --- /dev/null +++ b/QEGearImporter/QEGearImporter.toc @@ -0,0 +1,8 @@ +## Interface: 25100 +## Title: Questionably Epic Importer +## Author: Voulk +## Notes: Gear Importer for QE Live Burning Crusade +## Version: 1.26 + +embeds.xml +questionablyepic_enhanced.lua \ No newline at end of file diff --git a/src/parser.py b/src/parser.py index 4669054..0e72fd3 100644 --- a/src/parser.py +++ b/src/parser.py @@ -372,13 +372,14 @@ def parse_glyphs(): def parse_achievements(): global achievements for achievement in all_items["achievements"][3]: - achId = achievement.split(",")[0] - year = int(achievement.split(",")[1]) - month = int(achievement.split(",")[2]) - day = int(achievement.split(",")[3]) - date_time = datetime.datetime(year+2000, month, day, 0, 0) - timestamp = time.mktime(date_time.timetuple()) - achievements += achievementTemplate.fill(achievement_id=achId,timestamp=int(timestamp)) + if "," in achievement: + achId = achievement.split(",")[0] + year = int(achievement.split(",")[1]) + month = int(achievement.split(",")[2]) + day = int(achievement.split(",")[3]) + date_time = datetime.datetime(year+2000, month, day, 0, 0) + timestamp = time.mktime(date_time.timetuple()) + achievements += achievementTemplate.fill(achievement_id=achId,timestamp=int(timestamp)) def write_pdump(char_info): startPos = startPosMap[exp][factions[clean(f[5].split("=")[1])]]