Skip to content

Commit

Permalink
fixed youtube video stats (omitted dislike count)
Browse files Browse the repository at this point in the history
removed tiktok due to depreciated support from api provider)
lengthened refresh time to 2 hours due to api costs
  • Loading branch information
DarraghRogan committed May 22, 2022
1 parent f5534ea commit 2cbb813
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 133 deletions.
8 changes: 4 additions & 4 deletions Per mille.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -732,15 +732,15 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 8;
CURRENT_PROJECT_VERSION = 9;
DEVELOPMENT_TEAM = VDLCQ62KZH;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = "$(SRCROOT)/Per mille/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 1.09;
MARKETING_VERSION = 1.10;
PRODUCT_BUNDLE_IDENTIFIER = "Darragh-Rogan.Per-mille";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -757,15 +757,15 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 8;
CURRENT_PROJECT_VERSION = 9;
DEVELOPMENT_TEAM = VDLCQ62KZH;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = "$(SRCROOT)/Per mille/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 1.09;
MARKETING_VERSION = 1.10;
PRODUCT_BUNDLE_IDENTIFIER = "Darragh-Rogan.Per-mille";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
6 changes: 3 additions & 3 deletions Per mille/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {

menu.addItem(
NSMenuItem(
title: "Refresh (automatically every hour)",
title: "Refresh (automatically every 2 hours)",
action: #selector(AppDelegate.menuRefresh),
keyEquivalent: "r"
)
Expand Down Expand Up @@ -547,9 +547,9 @@ class AppDelegate: NSObject, NSApplicationDelegate {

menuRefresh()

// Periodically update the menu every 30 minutes to see the current info
// Periodically update the menu every 240 minutes to see the current info

let timer = Timer.scheduledTimer(withTimeInterval: 3600.0, repeats: true) { timer in
let timer = Timer.scheduledTimer(withTimeInterval: 7200.0, repeats: true) { timer in
self.menuRefresh()
}

Expand Down
Loading

0 comments on commit 2cbb813

Please sign in to comment.