mirror of
https://github.com/SEPPDROID/JellyCAT.git
synced 2025-10-22 07:54:27 +00:00
0.1.4
This commit is contained in:
78
app.go
78
app.go
@@ -91,39 +91,53 @@ func displayHelp() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func displayCinfo() {
|
func displayCinfo() {
|
||||||
// Current config information, also so I can see what the actual value is
|
var dnsStatus string
|
||||||
|
var webStatus string
|
||||||
|
|
||||||
|
if config.DnsServEN {
|
||||||
|
dnsStatus = "Enabled"
|
||||||
|
} else {
|
||||||
|
dnsStatus = "Disabled"
|
||||||
|
}
|
||||||
|
|
||||||
|
if config.WebServEN {
|
||||||
|
webStatus = "Enabled"
|
||||||
|
} else {
|
||||||
|
webStatus = "Disabled"
|
||||||
|
}
|
||||||
|
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
fmt.Println("=========== JellyCAT Config =============")
|
fmt.Println("============ JellyCAT Config =============")
|
||||||
fmt.Println("| Current config & Information: |")
|
fmt.Println("| Current config & Information: |")
|
||||||
fmt.Println("=========================================")
|
fmt.Println("==========================================")
|
||||||
fmt.Println("| *** Services *** |")
|
fmt.Println("| *** Services *** |")
|
||||||
fmt.Println("| |")
|
fmt.Println("| |")
|
||||||
fmt.Println("| DNS SERVER : Enabled |") // nice static print, nerd hehehe
|
fmt.Println("| DNS SERVER :", dnsStatus, " |")
|
||||||
fmt.Println("| WEB SERVER : Enabled |")
|
fmt.Println("| WEB SERVER :", webStatus, " |")
|
||||||
fmt.Println("| |")
|
fmt.Println("| |")
|
||||||
fmt.Println("| *** Current Config *** |")
|
fmt.Println("| *** Current Config *** |")
|
||||||
fmt.Println("| |")
|
fmt.Println("| |")
|
||||||
fmt.Println("| *** DNS *** |")
|
fmt.Println("| *** DNS *** |")
|
||||||
fmt.Println("| |")
|
fmt.Println("| |")
|
||||||
fmt.Println("| hijack_ip = ", config.HijackIP, " |")
|
fmt.Println("| hijack_ip = ", config.HijackIP, " |")
|
||||||
fmt.Println("| hijack_app = ", config.HijackApp, " |")
|
fmt.Println("| hijack_app = ", config.HijackApp, " |")
|
||||||
fmt.Println("| hijack_img = ", config.HijackImg, " |")
|
fmt.Println("| hijack_img = ", config.HijackImg, " |")
|
||||||
fmt.Println("| forward_ip = ", config.ForwardIP, " |") // any big ip address and my design tabs too far :( haha
|
fmt.Println("| forward_ip = ", config.ForwardIP, " |") // any big ip address and my design tabs too far :( haha
|
||||||
fmt.Println("| forward_port = ", config.ForwardPort, " |")
|
fmt.Println("| forward_port = ", config.ForwardPort, " |")
|
||||||
fmt.Println("| |")
|
fmt.Println("| |")
|
||||||
fmt.Println("| *** WEB *** |")
|
fmt.Println("| *** WEB *** |")
|
||||||
fmt.Println("| |")
|
fmt.Println("| |")
|
||||||
fmt.Println("| https_port = ", config.HttpsPort, " |")
|
fmt.Println("| https_port = ", config.HttpsPort, " |")
|
||||||
fmt.Println("| https_port = ", config.HttpPort, " |")
|
fmt.Println("| https_port = ", config.HttpPort, " |")
|
||||||
fmt.Println("| |")
|
fmt.Println("| |")
|
||||||
fmt.Println("| *** CERTGEN *** |")
|
fmt.Println("| *** CERTGEN *** |")
|
||||||
fmt.Println("| |")
|
fmt.Println("| |")
|
||||||
fmt.Println("| common_name = ", config.CertName, " |")
|
fmt.Println("| common_name = ", config.CertName, " |")
|
||||||
fmt.Println("| |")
|
fmt.Println("| |")
|
||||||
fmt.Println("=========================================")
|
fmt.Println("==========================================")
|
||||||
fmt.Println("| go to brain.seppjm.com/# |")
|
fmt.Println("| https://github.com/SEPPDROID/JellyCAT |")
|
||||||
fmt.Println("| for more information & example cfg |")
|
fmt.Println("| for more information & example cfg |")
|
||||||
fmt.Println("=========================================")
|
fmt.Println("==========================================")
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
}
|
}
|
||||||
|
@@ -207,9 +207,11 @@ function authenticateJellyfin(){
|
|||||||
// Extracting ServerId and AccessToken
|
// Extracting ServerId and AccessToken
|
||||||
var serverId = responseJson.ServerId;
|
var serverId = responseJson.ServerId;
|
||||||
var accessToken = responseJson.AccessToken;
|
var accessToken = responseJson.AccessToken;
|
||||||
|
var userID = responseJson.SessionInfo.UserId;
|
||||||
// Storing ServerId and AccessToken in atv storage
|
// Storing ServerId and AccessToken in atv storage
|
||||||
atv.localStorage['jellyfin_serverid'] = serverId;
|
atv.localStorage['jellyfin_serverid'] = serverId;
|
||||||
atv.localStorage['jellyfin_authtoken'] = accessToken;
|
atv.localStorage['jellyfin_authtoken'] = accessToken;
|
||||||
|
atv.localStorage['jellyfin_user_id'] = userID;
|
||||||
atv.localStorage['jellyfin_loggedin'] = '1';
|
atv.localStorage['jellyfin_loggedin'] = '1';
|
||||||
showAuthSuccessScreen();
|
showAuthSuccessScreen();
|
||||||
} else {
|
} else {
|
||||||
|
@@ -25,7 +25,7 @@ function renderSearchScreen() {
|
|||||||
' <title>Search</title>' +
|
' <title>Search</title>' +
|
||||||
' </simpleHeader>' +
|
' </simpleHeader>' +
|
||||||
' </header>' +
|
' </header>' +
|
||||||
' <baseURL></baseURL>' +
|
' <baseURL>http://jcathost.dns/xml/sni.xml?s=</baseURL>' +
|
||||||
' </search>' +
|
' </search>' +
|
||||||
' </body>' +
|
' </body>' +
|
||||||
'</atv>';
|
'</atv>';
|
||||||
|
@@ -20,7 +20,7 @@ function printSessionStorage() {
|
|||||||
function printLocalStorage() {
|
function printLocalStorage() {
|
||||||
console.log("======== Printing ATV Local storage ===========")
|
console.log("======== Printing ATV Local storage ===========")
|
||||||
|
|
||||||
var keys = ['test', 'jellyfin_server_address', 'jellyfin_username', 'jellyfin_password', 'jellyfin_serverid', 'jellyfin_authtoken', 'jellyfin_loggedin'];
|
var keys = ['test', 'jellyfin_server_address', 'jellyfin_username', 'jellyfin_password', 'jellyfin_serverid', 'jellyfin_authtoken', 'jellyfin_loggedin', 'jellyfin_user_id'];
|
||||||
|
|
||||||
keys.forEach(function(key) {
|
keys.forEach(function(key) {
|
||||||
var value = atv.localStorage.getItem(key);
|
var value = atv.localStorage.getItem(key);
|
||||||
|
25
app/xml/sni.xml
Normal file
25
app/xml/sni.xml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<atv>
|
||||||
|
<body>
|
||||||
|
<searchResults id="com.jellycat.searchResults">
|
||||||
|
<menu>
|
||||||
|
<sections>
|
||||||
|
<menuSection>
|
||||||
|
<header>
|
||||||
|
<horizontalDivider alignment="center" accessibilityLabel="Error">
|
||||||
|
<title>Error</title>
|
||||||
|
</horizontalDivider>
|
||||||
|
</header>
|
||||||
|
<items>
|
||||||
|
<posterMenuItem id="list_0" accessibilityLabel="Poster Menu Item for Movie 1" onSelect="" onPlay="">
|
||||||
|
<label>Search is not implemented (yet)</label>
|
||||||
|
<label2>sorry</label2>
|
||||||
|
<image></image>
|
||||||
|
</posterMenuItem>
|
||||||
|
</items>
|
||||||
|
</menuSection>
|
||||||
|
</sections>
|
||||||
|
</menu>
|
||||||
|
</searchResults>
|
||||||
|
</body>
|
||||||
|
</atv>
|
2
main.go
2
main.go
@@ -26,7 +26,7 @@ func main() {
|
|||||||
|
|
||||||
// Default information store
|
// Default information store
|
||||||
JellyCAT = JcatDefaults{
|
JellyCAT = JcatDefaults{
|
||||||
Version: "0.1.3revB",
|
Version: "0.1.4",
|
||||||
Name: "JellyCAT Serving stHack",
|
Name: "JellyCAT Serving stHack",
|
||||||
HostName: config.CertName,
|
HostName: config.CertName,
|
||||||
HostIP: config.HijackIP,
|
HostIP: config.HijackIP,
|
||||||
|
Reference in New Issue
Block a user