Search found 89 matches

by majstang
06 Sep 2020, 15:58
Forum: Ask For Help
Topic: tableau RegEx
Replies: 10
Views: 247

Re: tableau RegEx

Super, mikeyww :thumbup: Thank you for pointing me to it. With that I can get all the dates with ease. I will have to contemplate how to go about in the best way. Yeah, its a very fun project, so fun in fact I tend to spend way too much time on it, which causes tension at home ;)
by majstang
06 Sep 2020, 13:56
Forum: Ask For Help
Topic: tableau RegEx
Replies: 10
Views: 247

Re: tableau RegEx

I havent got that far yet. All the info are available at the tv tableau site for webscraping, but im so new to this which equals one tiny step forward at the time. My failures are plentyful so there is many steps backwards as well forcing me to start over and investigate alternate ways. For example,...
by majstang
06 Sep 2020, 12:56
Forum: Ask For Help
Topic: tableau RegEx
Replies: 10
Views: 247

Re: tableau RegEx

Wow, boiler that is fantastic stuff :D So sweet, now its possible to squeeze in everything else in the tableau, such as description, sub-titles, star-rating, categories, iconpath, episode-num, date and review in order to write everything out to the XMLTV document :D Many thanks, both boiler and mike...
by majstang
06 Sep 2020, 11:37
Forum: Ask For Help
Topic: XML Class
Replies: 3
Views: 251

Re: XML Class

Hi maestrith, I did find Cocos XML class to be more suited for my needs, so I will go with that. With Cocos class I nearly managed to fix all problems from post 1, but still havent found a way to use the @XmlType Annotation to Define Schema Element Ordering to prevent the alfabetical sorting of attr...
by majstang
06 Sep 2020, 09:14
Forum: Ask For Help
Topic: tableau RegEx
Replies: 10
Views: 247

tableau RegEx

Hi, It got quite tricky to RegExmatch the following in order to later put it all into an object. Anyone up for it? Li= ( Yesterday 23:35 Yesterday Show Today 00:35 Late Night 01:35 Today Show 02:35 No broadcast 04:40 Good morning USA ) tableau := [] Title := "Yesterday Show" StartTime := "23:35" Sto...
by majstang
05 Sep 2020, 15:54
Forum: Ask For Help
Topic: XML Class
Replies: 3
Views: 251

XML Class

Hello, I am having some problems with the XML Class. When saving the class always appends the tree and I want it to overwrite. Tried to change this line to no avail. It still appends to the end of file leaving the old stuff in start of file. if(text!=this[]) file:=FileOpen(filename,"w"),file.Write(t...
by majstang
03 Sep 2020, 12:57
Forum: Ask For Help
Topic: Has NTFS file system changed in recent Win 10 versions??
Replies: 8
Views: 272

Re: Has NTFS file system changed in recent Win 10 versions??

SKAN, the .Length check works beautifully :dance: Maximum file size limit of 2GB does not seem to apply. I am testing .Length check successfully with recordings well over 5GB. Unfortunately I dont have larger recordings than that atm. Thankfully there is enough time between the File loop A_LoopFileS...
by majstang
02 Sep 2020, 15:01
Forum: Ask For Help
Topic: Has NTFS file system changed in recent Win 10 versions??
Replies: 8
Views: 272

Re: Has NTFS file system changed in recent Win 10 versions??

HEVC and H.264 recordings are usually above that size. I will try it out, thanks SKAN :wave:
by majstang
02 Sep 2020, 14:48
Forum: Ask For Help
Topic: Has NTFS file system changed in recent Win 10 versions??
Replies: 8
Views: 272

Re: Has NTFS file system changed in recent Win 10 versions??

Of course I should have seen it comming. The FileOpen() FileInUse check fixes the problem I had with my old FileInUse check, but it also introduces a new problem. Recordings we are watching atm (loaded into a player) are diplayed in LV as ongoing recordings, which is to be expected (the check is doi...
by majstang
01 Sep 2020, 17:52
Forum: Ask For Help
Topic: HTML DOM
Replies: 42
Views: 1238

Re: HTML DOM

why I must use the EncodeDecodeURI() when using nordic chars URL must contain ASCII characters only. However I noticed that sometimes HTTP-object can work correctly without encoding unicode characters, perhaps this object does it somehow by itself. querySelector.ahk complained about not finding the...
by majstang
01 Sep 2020, 17:08
Forum: Ask For Help
Topic: Has NTFS file system changed in recent Win 10 versions??
Replies: 8
Views: 272

Re: Has NTFS file system changed in recent Win 10 versions??

:shock: :shock:
AWESOME :clap:
Can hardly believe my eyes, you solved it in principal with a oneliner :) This one must have the potential to be even faster compared to the attribute check and matching. Speedy "fileinuse" check is imperative when populating +1000 files.

Many thanks SKAN :wave:
by majstang
01 Sep 2020, 16:01
Forum: Ask For Help
Topic: HTML DOM
Replies: 42
Views: 1238

Re: HTML DOM

teadrinker, I would like to know your take on why I must use the EncodeDecodeURI() when using nordic chars " å,æ,ø,å,ä,ö" in title? That is strange (even you thought so when I first noticed this problem earlier in the thread) because it should work without the EncodeDecodeURI(). The querySelector.ah...
by majstang
01 Sep 2020, 12:01
Forum: Ask For Help
Topic: Has NTFS file system changed in recent Win 10 versions??
Replies: 8
Views: 272

Re: Has NTFS file system changed in recent Win 10 versions??

After more investigation it looks like I made the wrong assumption in my initial post. The culprit updating the modification attribute while file is still written to is simply if I open the right click context menu properties window to manually check the attributes. That should imply normal shell be...
by majstang
31 Aug 2020, 17:14
Forum: Ask For Help
Topic: Has NTFS file system changed in recent Win 10 versions??
Replies: 8
Views: 272

Has NTFS file system changed in recent Win 10 versions??

Hi, Earlier with for example ongoing recordings, meaning the file is still being written to, the creation timestamp and modification timestamp stayed the same until the recording finished. When finished the modification timestamp got updated. Now Windows updates the modification timestamp intermitte...
by majstang
31 Aug 2020, 11:27
Forum: Ask For Help
Topic: HTML DOM
Replies: 42
Views: 1238

Re: HTML DOM

Thanks for the patience and for showing me this fantastic method, teadrinker :) Its so much easier compared to the one I did go with at first, although its nice to know that method too. Now I have the tools and knowledge to start a very ambitious webscraping project :wave:
by majstang
30 Aug 2020, 17:21
Forum: Ask For Help
Topic: HTML DOM
Replies: 42
Views: 1238

Re: HTML DOM

Nice samples :thumbup: I need to practice this, so the more the merrier. One last question about querySelector syntax. In the Unbreakable case there is no match for me to get the imdb_rating from this html: <span class="mobile-sprite yellow-star"></span><span class="inline-block text-left vertically...
by majstang
30 Aug 2020, 16:39
Forum: Ask For Help
Topic: HTML DOM
Replies: 42
Views: 1238

Re: HTML DOM

I did solve it :D
MsgBox, % "Imdb_poster: " . doc.querySelector(".media-left > img").getAttribute("data-src-x2")
by majstang
30 Aug 2020, 16:16
Forum: Ask For Help
Topic: HTML DOM
Replies: 42
Views: 1238

Re: HTML DOM

data-src-x2 url Yes, that is the correct poster, but how to get it with querySelector syntax? I do get it ok with my own code: try While (x2 := document.getElementsByTagName("a")[A_Index-1]) { if (x2.className = "media-left") imdb_poster := x2.getElementsByTagName("img")[0].getAttribute("data-src-x...
by majstang
30 Aug 2020, 15:47
Forum: Ask For Help
Topic: HTML DOM
Replies: 42
Views: 1238

Re: HTML DOM

I am perplexed :?: What if you do a UrlDownloadToFile and search the file. Do you find it then? Something hard to explain are playing with us :? I am using Chrome and it does seem to do some memory caching. EDIT i do see the data-src-x22 in your screendump, but it is named data-src-x2 in your case :...
by majstang
30 Aug 2020, 15:18
Forum: Ask For Help
Topic: HTML DOM
Replies: 42
Views: 1238

Re: HTML DOM

Ah, ok, sorry! Throw in this one.
RegExMatch(imdbURL, ".*?/tt[^/]+", imdbURL)
Exact url should be
https://m.imdb.com/title/tt0217869

Go to advanced search