Skip to content

Commit

Permalink
Check the server for Setup-SD.png
Browse files Browse the repository at this point in the history
There are some situations where HMS could get stuck and not allow you to
edit the URL of the server. eg. enter an IP address of a http server
without a directory listing.

This commits requires that the server have /Setup-SD.png available. If
it isn't it will fall into the URL editing dialog.
  • Loading branch information
Brian C. Lane committed Oct 14, 2016
1 parent 3659108 commit d9fb736
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion HMS/source/checkServerUrl.brs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Function checkServerUrl(forceEdit As Boolean) As Boolean
if (serverUrl = invalid) then
print "ServerUrl not found in the registry"
serverUrl = "video.local"
else if not forceEdit and isUrlValid(serverUrl) then
else if not forceEdit and isUrlValid(serverUrl+"/Setup-SD.png") then
print "Server set to "; serverUrl
return true
end if
Expand Down
4 changes: 4 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ by Brian C. Lane <bcl@brianlane.com>

Search-HD.png Search-SD.png Setup-HD.png Setup-SD.png

IMPORTANT: As of v3.1 /Setup-SD.png is required for HMS to start. If it is
missing it will fall into the URL editing dialog. This is so that you can
more easily recover from entering an incorrect URL.

Sample directory listing:
Firefly/
Home_Movies/
Expand Down

0 comments on commit d9fb736

Please sign in to comment.