Skip to content

Commit

Permalink
multiple types of video id support
Browse files Browse the repository at this point in the history
  • Loading branch information
magni1200s committed Sep 15, 2017
1 parent 9d88cb0 commit c9e2c09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nFinderHook/nFinderHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ int WINAPI mysend(SOCKET s, const char* buf, int len, int flags) {
{
const char *p1 = NULL;

if (((p1 = strstr(buf, "GET /watch/sm")) != NULL) || ((p1 = strstr(buf, "GET http://www.nicovideo.jp/watch/sm")) != NULL))
// Video ID is now "sm" with 8-digit number e.g. "sm12345678" or 10-digit number e.g. "1234567890". Need to support both types.
if (((p1 = strstr(buf, "GET /watch/")) != NULL) || ((p1 = strstr(buf, "GET http://www.nicovideo.jp/watch/")) != NULL))
{
char buf2[BUFFSIZE];
int len2 = 0;
Expand Down

0 comments on commit c9e2c09

Please sign in to comment.