• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Development Plugin Development JellySearch

     
    • 1 Vote(s) - 5 Average

    JellySearch

    A fast full-text search proxy for Jellyfin
    Topomov
    Offline

    Junior Member

    Posts: 32
    Threads: 2
    Joined: 2023 Jul
    Reputation: 1
    #16
    2024-08-27, 07:25 PM
    It works so beautiful well! Thank you for everything!!

    As for Synology users; I wrote the following script that should be put in the task scheduler (have it run at boot as root)

    Code:
    # Define the search term for grep and the words for modification
    search_word_1="jellyfin.MYHOSTNAME.com"
    search_word_2="location \/ {"
    insert_text="\n if (\$arg_searchTerm) { \n        proxy_pass http:\/\/localhost:MYJELLYSEARCHPORT;\n        break;\n    }\n"

    # Search for the first file containing the string in grep_term in the specified directory
    file=$(grep -Rnw '/usr/local/etc/nginx/sites-available/' -e "$search_word_1" | awk -F: 'NR==1{print $1}')

    # Check if a file was found
    if [ -z "$file" ]; then
      echo "No file containing '$grep_term' found."
      exit 1
    fi

    # Verify that both search_word_1 and search_word_2 exist in the file
    if grep -q "$search_word_1" "$file" && grep -q "$search_word_2" "$file"; then
      # Use sed with variables to find the first occurrence of search_word_2 after search_word_1 and insert insert_text after search_word_2
      sed -i "/$search_word_1/,/$search_word_2/{s/\($search_word_2\)/\1 $insert_text/;}" "$file"
      echo "Modification applied to $file"
      nginx -s reload
    else
      echo "The file $file does not contain both '$search_word_1' and '$search_word_2'"
    fi
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    JellySearch - by keklol - 2024-08-16, 11:12 AM
    RE: JellySearch - by jennystreaming - 2024-08-18, 06:34 PM
    RE: JellySearch - by jennystreaming - 2024-08-18, 06:50 PM
    RE: JellySearch - by TheDMV - 2024-08-28, 10:46 AM
    RE: JellySearch - by Topomov - 2024-08-20, 09:54 AM
    RE: JellySearch - by thornbill - 2024-08-20, 12:31 PM
    RE: JellySearch - by Topomov - 2024-08-20, 05:54 PM
    RE: JellySearch - by xiNe - 2024-08-20, 07:18 PM
    RE: JellySearch - by twilco - 2025-01-08, 02:52 AM
    RE: JellySearch - by domi - 2024-08-21, 08:06 AM
    RE: JellySearch - by Topomov - 2024-08-21, 06:45 PM
    RE: JellySearch - by domi - 2024-08-22, 09:36 PM
    RE: JellySearch - by Nerokor - 2024-08-23, 12:54 AM
    RE: JellySearch - by Topomov - 2024-08-23, 02:55 PM
    RE: JellySearch - by vodka - 2024-08-23, 03:50 PM
    RE: JellySearch - by domi - 2024-08-24, 10:39 AM
    RE: JellySearch - by Nerokor - 2024-08-28, 12:49 AM
    RE: JellySearch - by keklol - 2024-08-27, 08:46 AM
    RE: JellySearch - by Topomov - 2024-08-27, 07:25 PM
    RE: JellySearch - by jennystreaming - 2024-10-06, 03:03 PM
    RE: JellySearch - by domi - 2024-10-07, 07:12 AM
    RE: JellySearch - by jennystreaming - 2024-10-07, 07:13 AM
    RE: JellySearch - by domi - 2024-08-28, 08:34 AM
    RE: JellySearch - by hov - 2024-09-17, 06:16 AM
    RE: JellySearch - by Zedniac - 2024-09-18, 05:43 AM
    RE: JellySearch - by Zedniac - 2024-09-18, 03:21 PM
    RE: JellySearch - by Hectik - 2024-09-30, 11:12 PM
    RE: JellySearch - by Hectik - 2024-10-02, 11:28 PM
    RE: JellySearch - by TheDreadPirate - 2024-10-03, 12:25 AM
    RE: JellySearch - by Hectik - 2024-10-05, 08:30 PM
    RE: JellySearch - by dontcryforme - 2024-10-03, 12:54 PM
    RE: JellySearch - by Hectik - 2024-10-05, 09:32 PM
    RE: JellySearch - by domi - 2024-10-06, 09:01 AM
    RE: JellySearch - by Hectik - 2024-10-06, 11:30 PM
    RE: JellySearch - by WheelFire - 2024-10-11, 02:02 PM
    RE: JellySearch - by domi - 2024-10-12, 08:47 AM
    RE: JellySearch - by WheelFire - 2024-10-12, 09:01 AM
    RE: JellySearch - by vbs - 2024-10-12, 11:35 AM
    RE: JellySearch - by need4swede - 2024-10-15, 04:48 PM
    RE: JellySearch - by Druidblack - 2024-11-17, 11:08 AM
    RE: JellySearch - by keklol - 2024-12-05, 03:49 AM
    RE: JellySearch - by kandykarter - 2024-12-11, 05:54 PM
    RE: JellySearch - by Druidblack - 2024-11-16, 06:44 PM
    RE: JellySearch - by JellyHunter - 2025-01-08, 06:31 PM
    RE: JellySearch - by thymon - 2025-01-13, 03:43 PM
    RE: JellySearch - by thymon - 2025-01-24, 08:34 AM
    RE: JellySearch - by domi - 2025-01-29, 09:51 AM
    RE: JellySearch - by nothingveryobvious - 2025-01-30, 05:06 AM
    RE: JellySearch - by kandykarter - 2025-01-31, 07:10 PM
    RE: JellySearch - by souvik29766 - 2025-04-01, 12:41 PM
    RE: JellySearch - by TheDreadPirate - 2025-04-01, 01:29 PM
    RE: JellySearch - by kandykarter - 2025-04-01, 05:31 PM
    RE: JellySearch - by keesfluitman_76238 - Yesterday, 03:35 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode