update DownloadDialog.java

keep *.opus extension
This commit is contained in:
kapodamy 2019-10-02 13:31:45 -03:00
parent 94e23142a5
commit 844f80a5f1

View file

@ -562,7 +562,7 @@ public class DownloadDialog extends DialogFragment implements RadioGroup.OnCheck
mainStorage = mainStorageVideo; mainStorage = mainStorageVideo;
format = videoStreamsAdapter.getItem(selectedVideoIndex).getFormat(); format = videoStreamsAdapter.getItem(selectedVideoIndex).getFormat();
mime = format.mimeType; mime = format.mimeType;
filename += format == MediaFormat.OPUS ? "ogg" : format.suffix; filename += format.suffix;
break; break;
case R.id.subtitle_button: case R.id.subtitle_button:
mainStorage = mainStorageVideo;// subtitle & video files go together mainStorage = mainStorageVideo;// subtitle & video files go together