Official eMule-Board: Storedsearches.met Deduplication Script - Official eMule-Board

Jump to content


Page 1 of 1

Storedsearches.met Deduplication Script I'm halfway there

#1 User is offline   Nordstorm 

  • Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 10-September 10

Posted 11 September 2011 - 01:59 PM

Hi,

As you've seen in my previous topic I have something with the StoredSearches.met file.
I want to deduplicate stored search results and because I wasn't able to modify the binaries, or to understand the format of this file, I decided to go on another way.
I've written a few Perl subs(using LVM_GETITEMTEXT notifications) that retrieve Search results fields like(from a specified searchtab): name, size, hash.
Also, I've written a subroutine for closing search tabs.

The only problem that I have is that the size field is displayed in KB or MB or bytes. but for getting the ed2k link for a specific file, you must have it always in bytes. So, is there a way to get this field in bytes?
Or is there a way to automate the extraction of ed2k links from a search tab?
IMHO this can be done in various ways, but I need some assistance either way I'd choose.
1) finding a way to automate the "right click" and the left-click "copy ed2k links".
2) finding out where does emule actually store those links or at least the size in bytes. I believe that this requires hooks. I haven't got any experience in this area though.
1

#2 User is offline   Stulle 

  • [Enter Mod] Dev
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5804
  • Joined: 07-April 04

Posted 11 September 2011 - 02:13 PM

perl? eMule is C++. if you are trying to hack into the user interface with a different program you will either have to work with what you are given (such as the displayed columns and the context menu functions) or will have to edit eMule's source code in order to access information that is not usually available.

although i admire your endurance i still wonder why you can't simply work out a way that is comfortable and does not require you to go to these lengths. ever thought about simply storing the ed2k links of search results you consider useful in a structured manner? that would be way more simple!
I am an emule-web.de member and fan!

[Imagine there was a sarcasm meter right here!]

No, there will not be a new version of my mods. No, I do not want your PM. No, I am certain, use the board and quit sending PMs. No, I am not kidding, there will not be a new version of my mods just because of YOU asking for it!
0

#3 User is offline   Nordstorm 

  • Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 10-September 10

Posted 11 September 2011 - 02:34 PM

You have a point, Stulle.
I want exacly the same thing, but I can't find a simple way to batch extract those ed2k links out of the stored searches.
How would you do this?
1

#4 User is offline   Stulle 

  • [Enter Mod] Dev
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5804
  • Joined: 07-April 04

Posted 11 September 2011 - 04:05 PM

Make a search, mark all files you would like to download at some point (using the ctrl key on your keyboard and your left mouse click), right click one of the marked results, click "Copy eD2k Links", open up a text editor of your choice, past the clip board content, save the file under a reasonable name that helps you remembering the files content. It's really not rocket science.
I am an emule-web.de member and fan!

[Imagine there was a sarcasm meter right here!]

No, there will not be a new version of my mods. No, I do not want your PM. No, I am certain, use the board and quit sending PMs. No, I am not kidding, there will not be a new version of my mods just because of YOU asking for it!
0

#5 User is offline   Nordstorm 

  • Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 10-September 10

Posted 11 September 2011 - 04:15 PM

Now I have hundreds of search result tabs which I want to sort. How can I batch extract these links?
It can't be done by hand.
1

#6 User is offline   Stulle 

  • [Enter Mod] Dev
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5804
  • Joined: 07-April 04

Posted 11 September 2011 - 04:37 PM

True, hundreds of tabs is a lot but then, it's insane to even accumulate that amount. Not even mentioning the download of so many files, yet. This is not what eMule is meant to be for!

Anyway, if you are worried about dupes, just compile your list, paste it into eMule and dupe links will be ignored after a file has been added once. You can then just copy the links of the downloads you just added and repaste it in the document.
I am an emule-web.de member and fan!

[Imagine there was a sarcasm meter right here!]

No, there will not be a new version of my mods. No, I do not want your PM. No, I am certain, use the board and quit sending PMs. No, I am not kidding, there will not be a new version of my mods just because of YOU asking for it!
0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users