Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpacifico authored Jun 12, 2024
1 parent c34ec99 commit 9bf0bf9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 23 deletions.
4 changes: 2 additions & 2 deletions src/application/Shutter.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public class Shutter {
/*
* Initialisation
*/
public static String actualVersion = "18.1";
public static String actualVersion = "18.2";
public static String getLanguage = "";
public static String arch = "x86_64";
public static long availableMemory;
Expand Down Expand Up @@ -1725,7 +1725,7 @@ public void mouseReleased(MouseEvent e) {
if (accept) {

try {
Desktop.getDesktop().browse(new URI("https://www.shutterencoder.com/documentation.html"));
Desktop.getDesktop().browse(new URI("https://www.shutterencoder.com/documentation/"));
} catch (IOException | URISyntaxException er) {}
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/application/Update.java
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,9 @@ public static void newVersion(){
catch (Exception er){}

Document doc = Jsoup.connect("https://www.shutterencoder.com").get();
for (Element file : doc.select("a"))
{

for (Element file : doc.select("a"))
{
if (System.getProperty("os.name").contains("Windows")) //PC
{
try {
Expand Down
24 changes: 6 additions & 18 deletions src/library/EXIFTOOL.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZoneOffset;

import application.Console;
import application.Shutter;
Expand Down Expand Up @@ -110,21 +105,14 @@ public void run() {
exifHours = f[1]; //12:30:00
}

if (line.contains("Create Date"))
{
String l = line.substring(line.indexOf(":") + 2);
if (line.contains("Create Date") && line.contains("+") == false)
{
String l = line.substring(line.indexOf(":") + 2);
String f[] = l.split(" ");
creationDate = f[0]; //2018:04:06

ZoneOffset zoneOffSet = ZoneId.systemDefault().getRules().getOffset(LocalDateTime.now());
String o[] = zoneOffSet.toString().split(":");
Integer offsetTime = Integer.parseInt(o[0]);
creationDate = f[0].toString(); //2018:04:06

NumberFormat formatter = new DecimalFormat("00");
String time[] = f[1].split(":"); //12:30:00
Integer hours = (Integer.parseInt(time[0]) + offsetTime) % 24;

creationHours = formatter.format(hours) + ":" + time[1] + ":" + time[2];
String time[] = f[1].split(":"); //12:30:00
creationHours = time[0] + ":" + time[1] + ":" + time[2];
}

if (line.contains("Image Width"))
Expand Down
2 changes: 1 addition & 1 deletion src/library/FFPROBE.java
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ else if (line.contains("7.1"))
{
//Example : 2021-05-20T09:55:22.000000Z
String s[] = line.substring(line.indexOf(":") + 1).replace(" ", "").replace("T", " ").split("\\.");

creationTime = s[0];
}

Expand Down
1 change: 1 addition & 0 deletions src/settings/Timecode.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public static String setTimecode() {
if (caseGenerateFromDate.isSelected())
{
String s[] = EXIFTOOL.creationHours.split(":");

return " -timecode " + '"' + s[0] + ":" + s[1] + ":" + s[2] + dropFrame + "00" + '"';
}
else if (caseSetTimecode.isSelected())
Expand Down

0 comments on commit 9bf0bf9

Please sign in to comment.