wplayer

Check-in [4ce7a18e62]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:When a prefix matches (usually, a directory), don't overflow search result with all the contents of that directory.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:4ce7a18e6281cc981f86ae9d925a55257a7f21c5fae8455924a9d254e1a7889e
User & Date: vandys 2019-02-25 03:14:02
Context
2019-04-04
17:52
Explicit button size, workaround for old FxOS check-in: 3c52e0224a user: vandys tags: master, trunk
2019-02-25
03:14
When a prefix matches (usually, a directory), don't overflow search result with all the contents of that directory. check-in: 4ce7a18e62 user: vandys tags: master, trunk
2018-06-13
22:32
We have the metadata now, so have an "info" button to pop up all the available data. check-in: b7acfe7efc user: vandys tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to get.py.

309
310
311
312
313
314
315







316
317

318
319
320
321
322
323
324
                if not l.startswith(prefix):
                    break
                l = l[plen:]
                ll = ll[plen:]

            # See if our search string matches here
            if s in ll:







                matches.append(l)
                if len(matches) >= MAXSEARCH:

                    break
        
        # Here's a list of matching stuff
        # Parcel into file/dir just like a regular directory listing
	res = {"index": True, "files": [], "dirs": []}
        tp = d["path"]
        for bn in matches:







>
>
>
>
>
>
>


>







309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
                if not l.startswith(prefix):
                    break
                l = l[plen:]
                ll = ll[plen:]

            # See if our search string matches here
            if s in ll:
		# If /artist/album matches, skip using match
		#  slots for every /artist/album/01 ..., 02 ...
		#  track within.
		if matches and l.startswith(matches[-1]):
		    continue

		# Another distinct match
                matches.append(l)
                if len(matches) >= MAXSEARCH:
		    # That's enough, thanks
                    break
        
        # Here's a list of matching stuff
        # Parcel into file/dir just like a regular directory listing
	res = {"index": True, "files": [], "dirs": []}
        tp = d["path"]
        for bn in matches: