Open S-U-M-1 opened 5 years ago
@iHelp101 How do I get the userID back in the filenames of downloaded media?
The preferences file for XInsta is under /storage/emulated/0/.Instagram/. The file in question is FileFormat.txt. You can edit the format manually or delete the file to be reverted to default. The specific file format I believe you want is Username_MediaID_UserID.
The preferences file for XInsta is under /storage/emulated/0/.Instagram/. The file in question is FileFormat.txt. You can edit the format manually or delete the file to be reverted to default. The specific file format I believe you want is Username_MediaID_UserID.
Thank you so very much.
However, I noticed that there are parts of the code that tell XInsta to not fetch the userID if File.txt exists (the file where filename date formats are set). I can still only have either the userID with no date, or the date with no userID. I also still don't know what "ItemID" is.
Are you able to fix this so users can have any combination of formats in the filename, including profile picture filenames?
I also noticed just now that having a FileFormat.txt file at all (i.e. going into the File Format settings for the first time and changing them, which creates the file) breaks multiple-photo downloads. It stops XInsta fetching the individual mediaIDs for each file (it seems to only fetch the mediaID of the first file), which results in only 1 file being able to be downloaded (since XInsta intelligently skips downloading a file if one with the same filename already exists).
I am working on rewriting a lot of the code for multi downloads and file formats. I will provide you a test APK to evaluate when complete tonight.
I got file formats setup to be more modular. I am having issues with the logic behind understanding the new modularity when saving files. I also am working on fetching all possible parameters for each type of post.
Okay, appreciate it. I'll be ready to receive a test APK.
Here is a test APK. In this version I made the file format options more modular. Item ID was deprecated by Instagram, so I removed this option. The file format now consist of username, media ID, user ID, and date. You can use all four if you would like or use the standard three (Username, media ID, and date). I did add a protection when saving if XInsta does not detect media ID or date in the file format for a multi-post that it will add the media ID to ensure all download.
Let me know if you have any issue with this APK.
https://drive.google.com/open?id=1GphjyH7nOKbHxsiBZDvGy5U49_sVPClx
I tested the APK, and the following problems were found:
1 – Remaining issue: The default file format setting (before editing any file format settings, i.e. before FileFormat.txt and File.txt are created) is in reality Username_MediaID_UserID, but this is still not reflected in the File Format setting description, which says "Username_Date_MediaID", nor the default File Format settings themselves, which are Username, MediaID, Date. Additionally, the file format of downloads will not change to this Username_MediaID_Date setting unless I physically edit the File Format settings, such as removing and adding "Date": only then will FileFormat.txt be initially created and these settings be applied.
This can be fixed by simply editing the description and displayed default settings to be Username_MediaID_UserID. However, this will trigger bug 3 mentioned below unless it is fixed.
3 – New issue: If I change the File Format settings for the first time (and thus create the FileFormat.txt file) and include the "UserID" parameter in the settings, and then I also change the Date Format setting for the first time (and thus create the File.txt file):
*This does not happen if I only add "UserID" after selecting a date format and thus creating File.txt.
7 – New issue: The new modular File Format settings will not allow filenames to have just a username and userID, even if you set it as such. It will result in filenames with the format Username_UserID_MediaID. Additionally, if you set only "Username", it will save as "Username_MediaID", and if you set only "UserID", it will save as "UserID_MediaID". However, if you set only "Date" or only "MediaID", it saves correctly.
This causes conflict issues: issue A is that unless bug 2 is fixed, only 1 file will ever save while only "Date" is set, because the filename of every download will be "Yes".
However, issue B is that even if this bug is fixed, it means photos posted on the same date (or by the same user, or both) will overwrite each other, prohibiting the saving of both files separately.
My suggestion to avoid the inevitable conflict issue No. 2 is to force XInsta to number conflicting downloads (as " (2)", " (3)", etc.) only when non-unique filenames are set, which is anything that doesn't include the MediaID.
Once this fix is implemented, it should be possible to fix bug 7 and allow only usernames, userIDs or both in filenames without conflicts.
Other remarks:
Thank you for the feedback. I just got home from a trip and working on your request.
In the "File" section of the XInsta settings, I encountered a lot of bugs on v2.0.6 which were also present in v2.1.0.
My XInsta had for 3 years been saving files under the following filename format:
Note: this was not shown in the settings. I did not check this. I only know this from the filenames of downloads.
Today, I decided to explore these settings. When I entered the "Change File Format" window, for some reason it showed the following:
This was incorrect.
I also quickly found out that the X's next to each item did nothing. I couldn't remove nor add any formats, only reorder them.
I then tested downloading an Instagram file, and now, very strangely, the filenames were
I tried fixing this bug by going into "Change Date Format" and pressing "Day Month Year" (even though it was already selected, with a filled radio button). Initially, the files began saving as
but after I switched the settings to Month Day Year and back to Day Month Year, they saved with the correct Day Month Year instead.
I then went back into the "Change File Format" settings and suddenly the setting "ItemID" was replaced with the setting "Date".
The issue I have now is that I do not want a date if I cannot have the userID. I ideally wanted both the date and userID, but now I have no way of getting back the userID in the filename.
I tried multiple things after this to reset all settings to default:
Nothing worked, the settings remained the same throughout. I even went into my root folders looking for the prefs file and couldn't find it.
I really appreciate this app and have relied on it for nearly 4 years now. Thank you.
Phone: Samsung Galaxy S7 edge Android version: 6.0.1 XInsta versions: 2.0.6 (14 Jun 2018) and tested on 2.1.0 (11 Nov 2018) with same effects Instagram versions: 49.0.0.15.89 (21 Jun 2018) and tested on 69.0.0.30.95 (8 Nov 2018) with same effects