C# Class WeebIRCWebEdition.Program

Show file Open project: RareAMV/WeebIRC

Public Methods

Method Description
ParseSearchNibl ( string searchQuery ) : void

Private Methods

Method Description
Debug ( string debug ) : void

Calls debug callback with debug message from irc client

DebugCallbackMethod ( string debugmsg ) : void
DownloadStatusChange ( ) : void

Irc on download status chaned event, sends, when connected to an irc server, the update on the file download to the http server, which sends it to the webclient

GetCurrentFiles ( ) : void

Gets the current files in the download directory

GetLocalIPAddress ( ) : string
GetSubtitle ( string file, string customdir ) : void

Parses subtitle from .mkv file using external application "mkvextract.exe" from MkvToolNix (https://github.com/mbunkus/mkvtoolnix/blob/master/COPYING)

GetTimeStamp ( ) : string

Gets Current TimeStamp

HttpMessageReceived ( string message ) : void

Executes action on message received from http com server, action depends on message

Main ( string args ) : void
ParseAllSeasons ( ) : void
ParseAnimeSeason ( string url, string yearAndseason ) : void
ParseSearchAnime ( string url ) : void
RunningPlatform ( ) : void

Executes OS related code, got code partially from: http://stackoverflow.com/questions/10138040/how-to-detect-properly-windows-linux-mac-operating-systems It tryes to locate "mkvextract.exe" from MkvToolNix (https://github.com/mbunkus/mkvtoolnix/blob/master/COPYING), if not available, prompts user with ability to download application Starts interface when windows is detected, assuming local usage

SendIRCMessageToHttpServer ( string user, string message ) : void

Sends message received from irc client to http com server

SetupDownloadDir ( string dir ) : void

Sets the download directory to be used

Method Details

ParseSearchNibl() public static method

public static ParseSearchNibl ( string searchQuery ) : void
searchQuery string
return void